Alfresco分享增加了更多的工作流程结果


0

我正试图在露天企业中使用activiti进行个性化的工作流程。

在该工作流程中,有一个独特的网关,有3种可能的结果:

  • 接受
  • 问另一个
  • 拒绝

目标是让这三个选项可用,并允许工作流程遵循正确的路径,具体取决于用户选择的选项(这里没有默认结果)。

问题:
我制作了XML标记,就像我在手册中找到的说明中所说的那样,并将其置于应该的位置但是,在服务器中,只显示默认的“任务完成”按钮,而不是我在XML。
我将在此粘贴与此相关的相关代码。如果您需要更多,请在评论中提出并说明您需要哪个部分。此外,我已经确认露天正在读取所有XML内容和所有内容,除了它正在处理它应该。

的Tomcat /共享/类/露天/网络的扩展/股-CONFIG-custom.xml

<alfresco-config>   
    <!-- Imports are required to allow references to definitions in other models -->
    <imports>
        <!-- Import Alfresco Dictionary Definitions -->
        <import uri="http://www.alfresco.org/model/dictionary/1.0" prefix="d" />
        <!-- Import Alfresco Content Domain Model Definitions -->
        <import uri="http://www.alfresco.org/model/content/1.0" prefix="cm" />
    </imports>

...

<config evaluator="task-type" condition="wf:selectSituation">
    <forms>
        <form>
            <field-visibility>
                <show id="message" />
                <show id="bpm:dueDate" />
                <show id="bpm:priority" />
                <show id="wf:workDescription" />
                <show id="packageItems" />
                <show id="bpm:comment" />
                <show id="wf:reviewOutcome" />
            </field-visibility>
            <appearance>
                <set id="" appearance="title" label-id="workflow.set.general" />
                <set id="info" appearance="" template="/org/alfresco/components/form/2-column-set.ftl" />
                <set id="items" appearance="title" label-id="workflow.set.items" />
                <set id="work" appearance="title" label-id="workflow.set.work" />
                <set id="other" appearance="title" label-id="workflow.set.other" />
                <set id="response" appearance="title" label-id="workflow.set.response" />


                <field id="message" label-id="workflow.field.message">
                    <control template="/org/alfresco/components/form/controls/info.ftl" />
                </field>

                <field id="bpm:priority" label-id="workflow.field.priority" set="info" read-only="true">
                    <control template="/org/alfresco/components/form/controls/workflow/priority.ftl" />
                </field>
                <field id="bpm:dueDate" set="info" label-id="workflow.field.due">
                    <control template="/org/alfresco/components/form/controls/info.ftl" />
                </field>

                <field id="packageItems" set="items" />

                <field id="wf:workDescription" set="work">
                    <control template="/org/alfresco/components/form/controls/info.ftl" />
                </field>

                <field id="bpm:comment" label-id="workflow.field.comment"
                    set="response">
                    <control template="/org/alfresco/components/form/controls/textarea.ftl" />
                </field>

                <field id="wf:reviewOutcome" set="response" >
                    <control template="/org/alfresco/components/form/controls/workflow/activiti-transitions.ftl" />
                </field>

            </appearance>
        </form>
    </forms>
</config>

的Tomcat /共享/类/露天/扩展/模型/ customModel-custom.xml

<?xml version="1.0" encoding="UTF-8"?>

<model name="wf:workflowmodel" xmlns="http://www.alfresco.org/model/dictionary/1.0">

    <imports>
        <!-- Import Alfresco Dictionary Definitions -->
        <import uri="http://www.alfresco.org/model/dictionary/1.0"
            prefix="d" />
        <!-- Import Alfresco System Definitions -->
        <import uri="http://www.alfresco.org/model/system/1.0" prefix="sys" />
        <!-- Import Alfresco Content Domain Model Definitions -->
        <import uri="http://www.alfresco.org/model/content/1.0" prefix="cm" />
        <!-- Import User Model Definitions -->
        <import uri="http://www.alfresco.org/model/user/1.0" prefix="usr" />
        <import uri="http://www.alfresco.org/model/bpm/1.0" prefix="bpm" />
    </imports>

    <namespaces>
        <namespace uri="http://www.alfresco.org/model/workflow/1.0" prefix="wf" />
    </namespaces>

...

        <type name="wf:reviewEstimate">
            <parent>bpm:activitiOutcomeTask</parent>
            <properties>
                <property name="wf:reviewOutcome">
                    <type>d:text</type>
                    <default>Reject</default>
                    <constraints>
                        <constraint name="wf:reviewOutcomeOptions" type="LIST">
                            <parameter name="allowedValues">
                                <list>
                                    <value>Approve</value>
                                    <value>Ask Another</value>
                                    <value>Reject</value>
                                </list>
                            </parameter>
                        </constraint>
                    </constraints>
                </property>
            </properties>
            <overrides>
                <property name="bpm:packageItemActionGroup">
                    <default>edit_package_item_actions</default>
                </property>
                <property name="bpm:outcomePropertyName">
                    <default>{http://www.alfresco.org/model/workflow/1.0}reviewOutcome
                    </default>
                </property>
            </overrides>
            <mandatory-aspects>
                <aspect>bpm:assignee</aspect>
                <aspect>wf:workInfo</aspect>
            </mandatory-aspects>
        </type>

...

我想使用“alfresco-share”标签,但它不存在。“alfresco”标签也是如此。

Answers:


0

这里的问题是我使用的指南是使用“wf”命名空间作为它所做的一切的命名空间。似乎“wf”命名空间被保留或在指南制作后保留(2012年中),因此它导致一些工作和其他事情无法工作。

我更改了命名空间,这部分开始按预期工作。

By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.