Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-29591

Issues with fork and join while creating a new workflow

    Details

      Description

      I have created a new workflow please check into the code below and let me know if anything is missing.

      <workflow-definition
      xmlns="urn:liferay.com:liferay-workflow_6.1.0"
      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
      xsi:schemaLocation="urn:liferay.com:liferay-workflow_6.1.0 http://www.liferay.com/dtd/liferay-workflow-definition_6_1_0.xsd"
      >
      <name>Approver</name>
      <description>An approver can approve a workflow content </description>
      <version>1.0</version>

      <fork>
      <name>created</name>

      <transitions>
      <transition>
      <name>info review</name>
      <target>info_review</target>
      <default>true</default>
      </transition>
      <transition>
      <name>labs review</name>
      <target>labs_review</target>
      <default>true</default>
      </transition>
      </transitions>
      </fork>
      <task>
      <name>info_review</name>
      <actions>
      <notification>
      <name>Review Notification</name>
      <template>You have a new submission waiting for your review in the workflow.</template>
      <template-language>text</template-language>
      <notification-type>email</notification-type>
      <recipients>
      <user />
      </recipients>
      <execution-type>onAssignment</execution-type>
      </notification>
      <notification>
      <name>Review Completion Notification</name>
      <template>
      Your submission has been reviewed and the reviewer has applied the following ${taskComments}.</template>
      <template-language>freemarker</template-language>
      <notification-type>email</notification-type>
      <recipients>
      <user />
      </recipients>
      <execution-type>onExit</execution-type>
      </notification>
      </actions>
      <assignments>
      <roles>
      <role>
      <role-type>site</role-type>
      <name>Info Manager</name>
      </role>
      </roles>
      </assignments>
      <transitions>
      <transition>
      <name>result</name>
      <target>join_approve</target>
      <default>true</default>
      </transition>
      </transitions>
      </task>
      <task>
      <name>labs_review</name>
      <actions>
      <notification>
      <name>Review Notification</name>
      <template>You have a new submission waiting for your review in the workflow.</template>
      <template-language>text</template-language>
      <notification-type>email</notification-type>
      <recipients>
      <user />
      </recipients>
      <execution-type>onAssignment</execution-type>
      </notification>
      <notification>
      <name>Review Completion Notification</name>
      <template>
      Your submission has been reviewed and the reviewer has applied the following ${taskComments}.</template>
      <template-language>freemarker</template-language>
      <notification-type>email</notification-type>
      <recipients>
      <user />
      </recipients>
      <execution-type>onExit</execution-type>
      </notification>
      </actions>
      <assignments>
      <roles>
      <role>
      <role-type>site</role-type>
      <name>Labs Manager</name>
      </role>
      </roles>
      </assignments>
      <transitions>
      <transition>
      <name>result</name>
      <target>join_approve</target>
      <default>true</default>
      </transition>
      </transitions>
      </task>
      <join>
      <name>join_approve<name>
      <actions></actions>
      <transitions>
      <transition>
      <name>result</name>
      <target>final_approval</target>
      <default>true</default>
      </transition>
      </transitions>
      </join>
      <task>
      <name>final_approval</name>
      <actions></actions>
      <assignments></assignments>
      <transitions>
      <transition>
      <name>approve</name>
      <target>approved</target>
      <default>true</default>
      </transition>

      </transitions>
      </task>
      <task>
      <name>approved</name>
      <actions>
      <action>
      <name>approve</name>
      <script>
      <![CDATA[
      Packages.com.liferay.portal.kernel.workflow.WorkflowStatusManagerUtil.updateStatus(Packages.com.liferay.portal.kernel.workflow.WorkflowConstants.toStatus("approved"), workflowContext);
      ]]>
      </script>
      <script-language>javascript</script-language>
      <execution-type>onEntry</execution-type>
      </action>
      </actions>
      </task>
      </workflow-definition>

        Attachments

          Activity

            People

            Assignee:
            michael.saechang Michael Saechang
            Reporter:
            indraneel.kama@gmail.com INDRANEEL KAMA (Inactive)
            Participants of an Issue:
            Recent user:
            Esther Sanz
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Days since last comment:
              8 years, 29 weeks, 3 days ago

                Packages

                Version Package
                6.2.0 CE M4