Disable 'assign to' at workflow notifications

I'm working with Liferay Workflow and I've got a problem. The workflow goes this way: the user submits an asset and when the reviewer approves it, a notification is sent to the author. If the user opens the notification, there will be an option to assign the next workflow task to himself. But the user has not the responsible role to do this. It happens only at notifications, if the user goes to My account > My workflow tasks, there will be nothing assigned to him or his roles. Any ideas how to solve it? Thanks in advance!

Upvotes: 0

Views: 497

Answers (1)

Michael
Michael

Reputation: 101

this is some code from a working workflow where the "asset creator" does not need to assign the task to himself. I think you need to put in the assignment, "user" reflects to the asset creator.

<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>

Upvotes: 1

Related Questions