- android - RelativeLayout 背景可绘制重叠内容
- android - 如何链接 cpufeatures lib 以获取 native android 库?
- java - OnItemClickListener 不起作用,但 OnLongItemClickListener 在自定义 ListView 中起作用
- java - Android 文件转字符串
我已经使用 Pimcore 自己的文档教程在 Pimcore 中创建了一个工作流:
https://www.pimcore.org/docs/latest/Workflow_Management/Workflow_Tutorial.html
<?php
return [
"workflows" => [
[
],
[
"name" => "Product workflow",
"id" => 8108,
"workflowSubject" => [
"types" => ["object"],
"classes" => [38],
],
"enabled" => true,
"defaultState" => "opened",
"defaultStatus" => "new",
"allowUnpublished" => false,
"states" => [
[
"name" => "opened",
"label" => "Unfinished product",
"color" => "#377ea9"
],
[
"name" => "processing",
"label" => "Processing",
"color" => "#d9ef36"
],
[
"name" => "done",
"label" => "Finished product",
"color" => "#28a013"
]
],
"statuses" => [
[
"name" => "new",
"label" => "New product",
"objectLayout" => 1
],
[
"name" => "rejected",
"label" => "Rejected product"
],
[
"name" => "update_contents",
"label" => "Updating contents step",
],
[
"name" => "update_picture",
"label" => "Update the product picture",
"objectLayout" => 4
],
[
"name" => "validate_stock_and_price",
"label" => "Check the quantity and the price",
"objectLayout" => 5
],
[
"name" => "contents_preapared",
"label" => "Contents ready to publish"
],
[
"name" => "accepted",
"label" => "Accepted product",
"elementPublished" => true
]
],
"actions" => [
[
"name" => "reject",
"label" => "Reject the product",
"transitionTo" => [
"done" => [
"rejected"
]
],
"notes" => [
"required" => false
]
],
[
"name" => "process",
"label" => "Start processing the product",
"transitionTo" => [
"processing" => [
"update_contents"
]
]
],
[
"name" => "contents_updated",
"label" => "Contents up-to-date",
"transitionTo" => [
"processing" => [
"update_picture"
]
]
],
[
"name" => "picture_updated",
"label" => "Picture up-to-date",
"transitionTo" => [
"processing" => [
"validate_stock_and_price"
]
]
],
[
"name" => "contents_ready",
"label" => "Contents are ready to publish",
"transitionTo" => [
"processing" => ["contents_preapared"]
],
"notes" => [
"required" => false
]
],
[
"name" => "publish",
"label" => "Publish the product",
"transitionTo" => [
"done" => [
"accepted"
]
],
"additionalFields" => [
[
"name" => "timeWorked",
"fieldType" => "input",
"title" => "Time spent",
"blankText" => "30m",
"required" => true,
"setterFn" => null
]
]
]
],
"transitionDefinitions" => [
"new" => [ //this is the starting status, at the moment we can only set the product as rejected or move it to the processing stage
"validActions" => [
"reject" => null,
"process" => null
]
],
"rejected" => [ //we can only mark rejected project as a new
"validActions" => [
"new" => null
]
],
"update_contents" => [ // the product with update_contents status is able to use the contents_updated action
"validActions" => [
"contents_updated" => null
]
],
"update_picture" => [ // the product with update_picture status is able to use the picture_updated action
"validActions" => [
"picture_updated" => null
]
],
"validate_stock_and_price" => [ //here we can mark cthe product as a ready to the final validation
"validActions" => [
"contents_ready" => null
]
],
"contents_preapared" => [ // accept, reject or rollback
"validActions" => [
"process" => null,
"reject" => null,
"publish" => null
]
],
"accepted" => [
"validActions" => [
"reject" => null
]
]
]
]
]
];
之后我将 workflowmanagement.php 文件放在 website/config
如何触发这个工作流程?我在创建的对象中找不到操作按钮。
除了创建 workflowmanagement.php 文件之外,我还应该做些什么才能让 worflowmanagement 在 pimcore 中正常工作。
最佳答案
Workflow_management 教程:仍然没有新的更新。但是您可以在此处使用此代码执行操作:
"actions" => [
[
"name" => "reject",
"label" => "Reject the product",
"transitionTo" => [
"done" => [
"rejected"
]
],
"notes" => [
"required" => false
]
],
[
"name" => "process",
"label" => "Start processing the product",
"transitionTo" => [
"processing" => [
"update_contents"
]
]
]
],
关于php - pimcore 中的工作流程不起作用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/40758748/
我有一个问题要问 pimcore。为例如制定动态路线的可能性有哪些?对于对象详细信息页面? 在我看来,我可以使用自定义路由/静态路由和 Symfony 路由来实现这一点,对吗? 目前我一直在考试类(c
我对学院的问题“哪些数据类型支持数据继承?”感到困惑。在我听完所有视频并阅读有关本章的所有文档后,我仍然在这个问题上出错。 我尝试按照文档中提到的那样使用 Blocks 和 Object Bricks
我对学院的问题“哪些数据类型支持数据继承?”感到困惑。在我听完所有视频并阅读有关本章的所有文档后,我仍然在这个问题上出错。 我尝试按照文档中提到的那样使用 Blocks 和 Object Bricks
我正在 pimcore 中创建一个新站点。有没有办法导出/导入 pimcore 站点的完整数据,以便我可以导出 xml/csv 格式的 pimcore 数据进行必要的更改,然后将其导入回来? 最佳答案
我在 Pimcore 中开发了一个区域,允许我们从列表中选择 Pimcore 对象分类,并将其转换为 HTML 可呈现形式。 我想通过在后端将成功提交的对象捕获为对象来增加此功能,但是我似乎无法使用标
我想在 Pimcore 4.3.1 的对象树上下文菜单中添加一个自定义菜单按钮,例如在复制按钮之前: 我认为最好的解决方案是自定义插件: https://www.pimcore.org/docs/la
您好,我正在研究 pimcore cms。 我在保存对象时调用自定义 API,它有一些自定义错误消息。 现在 pimcore 显示 "Object Could not saved". 如何在错误框中显
我正在使用 Nginx 1.12.1、MYSQL 5.6、Redis 3.2.4、PHP 7.0、PHP 7.0 FPM 安装 Pimcore 5,用户设置为 nginx,并在 Amazon Linu
我正在尝试创建 pimcore 自定义插件。 我浏览了它的文档,到目前为止我已经创建了演示插件并且它工作正常。 现在我想通过插件创建自定义表格并需要将数据存储在自定义表格中,但不知道如何实现? 我知道
我已经通过 Liquid Web 在 VPS 上安装了 Pimcore。我加载了示例数据安装,它也使用夜间构建代码。虽然一切都安装良好,但面向公众的网站看起来很好并且功能良好,管理面板的登录屏幕也是如
我在执行后台进程时遇到问题。该过程是关于向时事通讯订阅者发送电子邮件。当我启动它时,它会返回默认消息,例如“电子邮件正在后台发送等等……”但它永远不会完成。没有订阅者收到电子邮件。 通过挖掘日志文件,
我已经使用 Pimcore 自己的文档教程在 Pimcore 中创建了一个工作流: https://www.pimcore.org/docs/latest/Workflow_Management/Wo
我正在尝试扩展 Pimcore 中的批量对象导入功能,以将用户限制在他们在自定义布局中可用的字段。 我需要覆盖的文件是 pimcore/modules/admin/controllers/Object
我有 Pimcore\Model\Document\Tag\Areablock 和树元素索引表: array(3) { [0]=> array(2) { ["key"]=>
我正在使用 pimcore 3。当发布任何以前的版本时,我需要对不同的类对象进行自定义验证。我需要在不同的插件上实现不同的验证。问题是,如果我在多个插件中覆盖相同的方法,则只有一种覆盖方法有效。这就是
已安装Pimcore5.1、PHP7及扩展、MySQL、Nginx Nginx 虚拟主机配置如下: upstream php-pimcore5 { server 127.0.0.1:9000;
我正在寻找基于 Zend Framework 的 CMS,并且我阅读了有关 Pimcore 的信息。现在我有一些关于它的问题: 有没有人有这个 CMS 的经验? 有哪些(不利)优势? 学习曲线如何?
展望 future ,我正在与 atm 合作的公司希望停止使用各种框架/cms 系统,而只为所有 future 的客户提供一个。 为此,我准备了一个选项列表,并将其缩减为 Pimcore 和 Pyro
我可以通过 Pimcore\Model\Object\Folder::create() 在 pimcore 中生成一个对象文件夹。不幸的是,Asset\Folder 中没有这样的函数。 有谁知道如何在
我刚刚使用命令行设置了 Pimcore, composer create-project pimcore/pimcore ./pimcoretest 所有目录和文件都使用上面的命令设置。 我在 lin
我是一名优秀的程序员,十分优秀!