禁用工作流通知中的“分配给”

时间:2016-07-19 21:27:39

标签: liferay workflow liferay-6

我正在使用Liferay Workflow,但我遇到了问题。工作流程采用以下方式:用户提交资产,当审阅者批准时,会向作者发送通知。如果用户打开通知,则会有一个选项将下一个工作流任务分配给自己。但是用户没有负责任的角色来执行此操作。如果用户转到“我的帐户”,则仅在通知时发生。我的工作流程任务,没有分配给他或他的角色。 任何想法如何解决?提前谢谢!

1 个答案:

答案 0 :(得分:1)

这是来自工作流程的一些代码,其中“资产创建者”不需要将任务分配给他自己。我认为您需要进行分配,“用户”会反映给资产创建者。

<task>
    <name>update</name>
    <metadata><![CDATA[{"xy":[160,208],"transitions":{"resubmit":{"bendpoints":[[178,171]]},"Submit changes":{"xy":[-18,2],"bendpoints":[[178,171]]}}}]]></metadata>
    <actions>
        <notification>
            <name>update notification</name>
            <template>${taskComments}</template>
            <template-language>freemarker</template-language>
            <notification-type>user-notification</notification-type>
            <recipients>
                <user/>
            </recipients>
            <execution-type>onEntry</execution-type>
        </notification>
        <notification>
            <name>update email notification</name>
            <description>Update required</description>
            <template>Dear ${userName}&lt;br&gt;</template>
            <template-language>freemarker</template-language>
            <notification-type>email</notification-type>
            <recipients>
                <user/>
            </recipients>
            <execution-type>onEntry</execution-type>
        </notification>
    </actions>
    <assignments>
        <user></user>
    </assignments>
    <task-timers>
      <task-timer>
        <name>default-assignment</name>
        <delay>
          <duration>1</duration>
          <scale>minute</scale>
        </delay>
        <blocking>true</blocking>
        <timer-actions>
          <timer-notification>
            <name>reminder update</name>
            <description>Reminder: update needed</description>
            <template>Dear ${userName}&lt;br&gt;</template>
            <template-language>freemarker</template-language>
            <notification-type>email</notification-type>
          </timer-notification>
          <reassignments>
            <user></user>
          </reassignments>
        </timer-actions>
      </task-timer>
    </task-timers>
    <transitions>
        <transition>
            <name>submit changes</name>
            <target>review</target>
        </transition>
    </transitions>
</task>