Hello,
I'm trying to create a workflow using eclipse activity in which 5 users will be selected at the beginning and will be sequenced as they have been selected for approval.
Unfortunately, after selecting workflow users, it writes an error: Workflow could not be started. Catalina log has no ERROR.
bootstrap-context.xml
<?xml version='1.0' encoding='UTF-8'?>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-2.0.xsd">
<!-- The bootstrap-context.xml file is used for patch definitions, importers,
workflow, and loading custom content models. -->
<!-- Registration of new models -->
<bean id="DemoWf-repo.dictionaryBootstrap" parent="dictionaryModelBootstrap" depends-on="dictionaryBootstrap">
<property name="models">
<list>
<value>alfresco/module/${project.artifactId}/model/digipaper-demo-wf-model.xml</value>
</list>
</property>
</bean>
<bean id="DemoWf-repo" parent="workflowDeployer">
<property name="workflowDefinitions">
<list>
<props>
<prop key="engineId">activiti</prop>
<prop key="location">alfresco/module/${project.artifactId}/workflow/digipaperWorkflowDemo.bpmn.xml</prop>
<prop key="mimetype">text/xml</prop>
<prop key="redeploy">true</prop>
</props>
</list>
</property>
</bean>
</beans>
digipaper-demo-wf-model.xml
<?xml version="1.0" encoding="UTF-8"?>
<model name="digipaperdemowf:workflowmodel" xmlns="http://www.alfresco.org/model/dictionary/1.0">
<imports>
<import uri="http://www.alfresco.org/model/dictionary/1.0"
prefix="d" />
<import uri="http://www.alfresco.org/model/bpm/1.0" prefix="bpm" />
<import uri="http://www.alfresco.org/model/content/1.0" prefix="cm" />
</imports>
<namespaces>
<namespace uri="http://digipaper.cz/alfresco/digipaper/demowf/0.1" prefix="digipaperdemowf" />
</namespaces>
<types>
<type name="digipaperdemowf:start">
<title>Zahájení workflow</title>
<parent>bpm:startTask</parent>
<properties>
</properties>
<associations>
</associations>
<mandatory-aspects>
<aspect>digipaperdemowf:assignees</aspect>
</mandatory-aspects>
</type>
<type name="digipaperdemowf:firstReview">
<title>Schvalování</title>
<parent>bpm:activitiOutcomeTask</parent>
<properties>
<property name="digipaperdemowf:reviewOutcome1">
<type>d:text</type>
<default>Zamítnout</default>
<constraints>
<constraint name="digipaperdemowf:reviewOutcomeOptions1" type="LIST">
<parameter name="allowedValues">
<list>
<value>Schválit</value>
<value>Zamítnout</value>
</list>
</parameter>
</constraint>
</constraints>
</property>
<property name="digipaperdemowf:firstReviewComment">
<title>Komentář</title>
<type>d:text</type>
</property>
</properties>
<mandatory-aspects>
<aspect>digipaperdemowf:assignees</aspect>
</mandatory-aspects>
</type>
<type name="digipaperdemowf:secondReview">
<title>Schvalování 2</title>
<parent>bpm:activitiOutcomeTask</parent>
<properties>
<property name="digipaperdemowf:reviewOutcome2">
<type>d:text</type>
<default>Zamítnout</default>
<constraints>
<constraint name="digipaperdemowf:reviewOutcomeOptions2" type="LIST">
<parameter name="allowedValues">
<list>
<value>Schválit</value>
<value>Zamítnout</value>
</list>
</parameter>
</constraint>
</constraints>
</property>
<property name="digipaperdemowf:secondReviewComment">
<title>Komentář</title>
<type>d:text</type>
</property>
</properties>
<mandatory-aspects>
<aspect>digipaperdemowf:assignees</aspect>
</mandatory-aspects>
</type>
<type name="digipaperdemowf:threeReview">
<title>Schvalování 3</title>
<parent>bpm:activitiOutcomeTask</parent>
<properties>
<property name="digipaperdemowf:reviewOutcome3">
<type>d:text</type>
<default>Zamítnout</default>
<constraints>
<constraint name="digipaperdemowf:reviewOutcomeOptions3" type="LIST">
<parameter name="allowedValues">
<list>
<value>Schválit</value>
<value>Zamítnout</value>
</list>
</parameter>
</constraint>
</constraints>
</property>
<property name="digipaperdemowf:threeReviewComment">
<title>Komentář</title>
<type>d:text</type>
</property>
</properties>
<mandatory-aspects>
<aspect>digipaperdemowf:assignees</aspect>
</mandatory-aspects>
</type>
<type name="digipaperdemowf:fourReview">
<title>Schvalování 4</title>
<parent>bpm:activitiOutcomeTask</parent>
<properties>
<property name="digipaperdemowf:reviewOutcome4">
<type>d:text</type>
<default>Zamítnout</default>
<constraints>
<constraint name="digipaperdemowf:reviewOutcomeOptions4" type="LIST">
<parameter name="allowedValues">
<list>
<value>Schválit</value>
<value>Zamítnout</value>
</list>
</parameter>
</constraint>
</constraints>
</property>
<property name="digipaperdemowf:fourReviewComment">
<title>Komentář</title>
<type>d:text</type>
</property>
</properties>
<mandatory-aspects>
<aspect>digipaperdemowf:assignees</aspect>
</mandatory-aspects>
</type>
<type name="digipaperdemowf:fiveReview">
<title>Schvalování 5</title>
<parent>bpm:activitiOutcomeTask</parent>
<properties>
<property name="digipaperdemowf:reviewOutcome5">
<type>d:text</type>
<default>Zamítnout</default>
<constraints>
<constraint name="digipaperdemowf:reviewOutcomeOptions5" type="LIST">
<parameter name="allowedValues">
<list>
<value>Schválit</value>
<value>Zamítnout</value>
</list>
</parameter>
</constraint>
</constraints>
</property>
<property name="digipaperdemowf:fiveReviewComment">
<title>Komentář</title>
<type>d:text</type>
</property>
</properties>
<mandatory-aspects>
<aspect>digipaperdemowf:assignees</aspect>
</mandatory-aspects>
</type>
<type name="digipaperdemowf:finalReview">
<title>Konečné rozhodnutí</title>
<parent>bpm:workflowTask</parent>
<properties>
<property name="digipaperdemowf:firstReviewCommentFinal">
<title>Komentář z prvního kroku</title>
<type>d:text</type>
</property>
<property name="digipaperdemowf:secondReviewCommentFinal">
<title>Komentář z druhého kroku</title>
<type>d:text</type>
</property>
<property name="digipaperdemowf:threeReviewCommentFinal">
<title>Komentář z třetího kroku</title>
<type>d:text</type>
</property>
<property name="digipaperdemowf:fourReviewCommentFinal">
<title>Komentář ze čtvrtého kroku</title>
<type>d:text</type>
</property>
<property name="digipaperdemowf:fiveReviewCommentFinal">
<title>Komentář z pátého kroku</title>
<type>d:text</type>
</property>
</properties>
</type>
</types>
<aspects>
<!-- -->
<!-- Aspekty -->
<!-- -->
<aspect name="digipaperdemowf:assignees">
<associations>
<association name="digipaperdemowf:assignee1">
<title>firstassignee</title>
<source>
<mandatory>false</mandatory>
<many>false</many>
</source>
<target>
<class>cm:person</class>
<mandatory>false</mandatory>
<many>false</many>
</target>
</association>
<association name="digipaperdemowf:assignee2">
<title>secondassignee</title>
<source>
<mandatory>false</mandatory>
<many>false</many>
</source>
<target>
<class>cm:person</class>
<mandatory>false</mandatory>
<many>false</many>
</target>
</association>
<association name="digipaperdemowf:assignee3">
<title>threedassignee</title>
<source>
<mandatory>false</mandatory>
<many>false</many>
</source>
<target>
<class>cm:person</class>
<mandatory>false</mandatory>
<many>false</many>
</target>
</association>
<association name="digipaperdemowf:assignee4">
<title>fourassignee</title>
<source>
<mandatory>false</mandatory>
<many>false</many>
</source>
<target>
<class>cm:person</class>
<mandatory>false</mandatory>
<many>false</many>
</target>
</association>
<association name="digipaperdemowf:assignee5">
<title>fivedassignee</title>
<source>
<mandatory>false</mandatory>
<many>false</many>
</source>
<target>
<class>cm:person</class>
<mandatory>false</mandatory>
<many>false</many>
</target>
</association>
</associations>
</aspect>
</aspects>
</model>
share-config-custom.xml
<!-- Share configuration related to this particular Share module extension,
such as: - Doclib action config - Form config - Aspect and Type config Note.
Any configuration related to the whole Share.war webapp (i.e. not specific
to this share extension) should be placed in the environment specific config:
alfresco/tomcat/shared/classes/alfresco/web-extension/share-config-custom.xml
file -->
<alfresco-config>
<config evaluator="string-compare" condition="activiti$DigipaperDigipaperDemoWf">
<forms>
<form>
<field-visibility>
<show id="bpm:workflowDescription" />
<show id="bpm:workflowDueDate" />
<show id="bpm:workflowPriority" />
<show id="digipaperdemowf:assignee1" />
<show id="digipaperdemowf:assignee2" />
<show id="digipaperdemowf:assignee3" />
<show id="digipaperdemowf:assignee4" />
<show id="digipaperdemowf:assignee5" />
<show id="packageItems" />
<show id="bpm:sendEMailNotifications" />
</field-visibility>
<appearance>
<set id="" appearance="title" label-id="workflow.set.general" />
<field id="bpm:workflowDescription" label-id="workflow.field.message">
<control template="/org/alfresco/components/form/controls/textarea.ftl">
<control-param name="style">width: 95%</control-param>
</control>
</field>
<set id="info" appearance="" template="/org/alfresco/components/form/2-column-set.ftl" />
<field id="bpm:workflowDueDate" label-id="workflow.field.due" set="info" />
<field id="bpm:workflowPriority" label-id="workflow.field.priority" set="info">
<control template="/org/alfresco/components/form/controls/workflow/priority.ftl" />
</field>
<set id="assignee" appearance="title" label-id="workflow.set.assignees" />
<field id="digipaperdemowf:assignee1" label-id="workflow.field.reviewer" set="assignee"> </field>
<field id="digipaperdemowf:assignee2" label-id="workflow.field.reviewer" set="assignee"> </field>
<field id="digipaperdemowf:assignee3" label-id="workflow.field.reviewer" set="assignee"> </field>
<field id="digipaperdemowf:assignee4" label-id="workflow.field.reviewer" set="assignee"> </field>
<field id="digipaperdemowf:assignee5" label-id="workflow.field.reviewer" set="assignee"> </field>
<set id="items" appearance="title" label-id="workflow.set.items" />
<field id="packageItems" set="items" />
<set id="other" appearance="title" label-id="workflow.set.other" />
<field id="bpm:sendEMailNotifications" set="other">
<control template="/org/alfresco/components/form/controls/workflow/email-notification.ftl" />
</field>
</appearance>
</form>
</forms>
</config>
<config evaluator="task-type" condition="digipaperdemowf:firstReview">
<forms>
<form>
<field-visibility>
<show id="message" />
<show id="taskOwner" />
<show id="bpm:dueDate" />
<!-- <show id="bpm:assignee" /> -->
<show id="digipaperdemowf:firstReviewComment" />
<show id="packageItems" />
<show id="digipaperdemowf:reviewOutcome1" />
</field-visibility>
<appearance>
<set id="" appearance="title" label-id="workflow.set.task.info" />
<set id="info" appearance="" template="/org/alfresco/components/form/3-column-set.ftl" />
<set id="progress" appearance="title" label-id="workflow.set.task.progress" />
<!-- <set id="assignee" appearance="title" label-id="workflow.set.assignees" /> -->
<set id="items" appearance="title" label-id="workflow.set.items" />
<set id="comments" appearance="title" label="Komentáře" />
<set id="response" appearance="title" label-id="workflow.set.response" />
<field id="message">
<control template="/org/alfresco/components/form/controls/info.ftl" />
</field>
<field id="digipaperdemowf:firstReviewComment" set="comments">
<control template="/org/alfresco/components/form/controls/textarea.ftl">
<control-param name="style">width: 95%</control-param>
</control>
</field>
<!-- <field id="bpm:assignee" label-id="workflow.field.reviewers" set="assignee" /> -->
<field id="digipaperdemowf:reviewOutcome1" label-id="workflow.field.outcome"
set="response">
<control
template="/org/alfresco/components/form/controls/workflow/activiti-transitions.ftl" />
</field>
<field id="taskOwner" set="info" />
<field id="bpm:taskId" set="info">
<control template="/org/alfresco/components/form/controls/info.ftl" />
</field>
<field id="bpm: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="bpm:status" set="progress" />
<field id="packageItems" set="items" />
</appearance>
</form>
</forms>
</config>
<config evaluator="task-type" condition="digipaperdemowf:secondReview">
<forms>
<form>
<field-visibility>
<show id="message" />
<show id="taskOwner" />
<show id="bpm:dueDate" />
<!-- <show id="bpm:assignee" /> -->
<show id="digipaperdemowf:secondReviewComment" />
<show id="packageItems" />
<show id="digipaperdemowf:reviewOutcome2" />
</field-visibility>
<appearance>
<set id="" appearance="title" label-id="workflow.set.task.info" />
<set id="info" appearance=""
template="/org/alfresco/components/form/3-column-set.ftl" />
<set id="progress" appearance="title" label-id="workflow.set.task.progress" />
<!-- <set id="assignee" appearance="title" label-id="workflow.set.assignees" /> -->
<set id="items" appearance="title" label-id="workflow.set.items" />
<set id="comments" appearance="title" label="Komentáře" />
<set id="response" appearance="title" label-id="workflow.set.response" />
<field id="message">
<control template="/org/alfresco/components/form/controls/info.ftl" />
</field>
<field id="digipaperdemowf:secondReviewComment" set="comments">
<control template="/org/alfresco/components/form/controls/textarea.ftl">
<control-param name="style">width: 95%</control-param>
</control>
</field>
<!-- <field id="bpm:assignee" label-id="workflow.field.reviewers" set="assignee" /> -->
<field id="digipaperdemowf:reviewOutcome2" label-id="workflow.field.outcome"
set="response">
<control
template="/org/alfresco/components/form/controls/workflow/activiti-transitions.ftl" />
</field>
<field id="taskOwner" set="info" />
<field id="bpm:taskId" set="info">
<control template="/org/alfresco/components/form/controls/info.ftl" />
</field>
<field id="bpm: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="bpm:status" set="progress" />
<field id="packageItems" set="items" />
</appearance>
</form>
</forms>
</config>
<config evaluator="task-type" condition="digipaperdemowf:threeReview">
<forms>
<form>
<field-visibility>
<show id="message" />
<show id="taskOwner" />
<show id="bpm:dueDate" />
<!-- <show id="bpm:assignee" /> -->
<show id="digipaperdemowf:threeReviewComment" />
<show id="packageItems" />
<show id="digipaperdemowf:reviewOutcome3" />
</field-visibility>
<appearance>
<set id="" appearance="title" label-id="workflow.set.task.info" />
<set id="info" appearance=""
template="/org/alfresco/components/form/3-column-set.ftl" />
<set id="progress" appearance="title" label-id="workflow.set.task.progress" />
<!-- <set id="assignee" appearance="title" label-id="workflow.set.assignees" /> -->
<set id="items" appearance="title" label-id="workflow.set.items" />
<set id="comments" appearance="title" label="Komentáře" />
<set id="response" appearance="title" label-id="workflow.set.response" />
<field id="message">
<control template="/org/alfresco/components/form/controls/info.ftl" />
</field>
<field id="digipaperdemowf:threeReviewComment" set="comments">
<control template="/org/alfresco/components/form/controls/textarea.ftl">
<control-param name="style">width: 95%</control-param>
</control>
</field>
<!-- <field id="bpm:assignee" label-id="workflow.field.reviewers" set="assignee" /> -->
<field id="digipaperdemowf:reviewOutcome3" label-id="workflow.field.outcome"
set="response">
<control
template="/org/alfresco/components/form/controls/workflow/activiti-transitions.ftl" />
</field>
<field id="taskOwner" set="info" />
<field id="bpm:taskId" set="info">
<control template="/org/alfresco/components/form/controls/info.ftl" />
</field>
<field id="bpm: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="bpm:status" set="progress" />
<field id="packageItems" set="items" />
</appearance>
</form>
</forms>
</config>
<config evaluator="task-type" condition="digipaperdemowf:fourReview">
<forms>
<form>
<field-visibility>
<show id="message" />
<show id="taskOwner" />
<show id="bpm:dueDate" />
<!-- <show id="bpm:assignee" /> -->
<show id="digipaperdemowf:fourReviewComment" />
<show id="packageItems" />
<show id="digipaperdemowf:reviewOutcome4" />
</field-visibility>
<appearance>
<set id="" appearance="title" label-id="workflow.set.task.info" />
<set id="info" appearance=""
template="/org/alfresco/components/form/3-column-set.ftl" />
<set id="progress" appearance="title" label-id="workflow.set.task.progress" />
<!-- <set id="assignee" appearance="title" label-id="workflow.set.assignees" /> -->
<set id="items" appearance="title" label-id="workflow.set.items" />
<set id="comments" appearance="title" label="Komentáře" />
<set id="response" appearance="title" label-id="workflow.set.response" />
<field id="message">
<control template="/org/alfresco/components/form/controls/info.ftl" />
</field>
<field id="digipaperdemowf:fourReviewComment" set="comments">
<control template="/org/alfresco/components/form/controls/textarea.ftl">
<control-param name="style">width: 95%</control-param>
</control>
</field>
<!-- <field id="bpm:assignee" label-id="workflow.field.reviewers" set="assignee" /> -->
<field id="digipaperdemowf:reviewOutcome4" label-id="workflow.field.outcome"
set="response">
<control
template="/org/alfresco/components/form/controls/workflow/activiti-transitions.ftl" />
</field>
<field id="taskOwner" set="info" />
<field id="bpm:taskId" set="info">
<control template="/org/alfresco/components/form/controls/info.ftl" />
</field>
<field id="bpm: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="bpm:status" set="progress" />
<field id="packageItems" set="items" />
</appearance>
</form>
</forms>
</config>
<config evaluator="task-type" condition="digipaperdemowf:fiveReview">
<forms>
<form>
<field-visibility>
<show id="message" />
<show id="taskOwner" />
<show id="bpm:dueDate" />
<!-- <show id="bpm:assignee" /> -->
<show id="digipaperdemowf:fiveReviewComment" />
<show id="packageItems" />
<show id="digipaperdemowf:reviewOutcome5" />
</field-visibility>
<appearance>
<set id="" appearance="title" label-id="workflow.set.task.info" />
<set id="info" appearance=""
template="/org/alfresco/components/form/3-column-set.ftl" />
<set id="progress" appearance="title" label-id="workflow.set.task.progress" />
<!-- <set id="assignee" appearance="title" label-id="workflow.set.assignees" /> -->
<set id="items" appearance="title" label-id="workflow.set.items" />
<set id="comments" appearance="title" label="Komentáře" />
<set id="response" appearance="title" label-id="workflow.set.response" />
<field id="message">
<control template="/org/alfresco/components/form/controls/info.ftl" />
</field>
<field id="digipaperdemowf:fiveReviewComment" set="comments">
<control template="/org/alfresco/components/form/controls/textarea.ftl">
<control-param name="style">width: 95%</control-param>
</control>
</field>
<!-- <field id="bpm:assignee" label-id="workflow.field.reviewers" set="assignee" /> -->
<field id="digipaperdemowf:reviewOutcome5" label-id="workflow.field.outcome"
set="response">
<control
template="/org/alfresco/components/form/controls/workflow/activiti-transitions.ftl" />
</field>
<field id="taskOwner" set="info" />
<field id="bpm:taskId" set="info">
<control template="/org/alfresco/components/form/controls/info.ftl" />
</field>
<field id="bpm: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="bpm:status" set="progress" />
<field id="packageItems" set="items" />
</appearance>
</form>
</forms>
</config>
<config evaluator="task-type" condition="digipaperdemowf:finalReview">
<forms>
<form>
<field-visibility>
<show id="message" />
<show id="taskOwner" />
<show id="bpm:dueDate" />
<show id="digipaperdemowf:firstReviewCommentFinal" />
<show id="digipaperdemowf:secondReviewCommentFinal" />
<show id="digipaperdemowf:threeReviewCommentFinal" />
<show id="digipaperdemowf:fourReviewCommentFinal" />
<show id="digipaperdemowf:fiveReviewCommentFinal" />
<show id="packageItems" />
<show id="transitions" />
</field-visibility>
<appearance>
<set id="" appearance="title" label-id="workflow.set.task.info" />
<set id="info" appearance="" template="/org/alfresco/components/form/3-column-set.ftl" />
<set id="progress" appearance="title" label-id="workflow.set.task.progress" />
<set id="items" appearance="title" label-id="workflow.set.items" />
<set id="comments" appearance="title" label="Komentáře" />
<set id="response" appearance="title" label-id="workflow.set.response" />
<field id="message">
<control template="/org/alfresco/components/form/controls/info.ftl" />
</field>
<field id="digipaperdemowf:firstReviewCommentFinal" set="comments">
<control template="/org/alfresco/components/form/controls/info.ftl" />
</field>
<field id="digipaperdemowf:secondReviewCommentFinal" set="comments">
<control template="/org/alfresco/components/form/controls/info.ftl" />
</field>
<field id="digipaperdemowf:threeReviewCommentFinal" set="comments">
<control template="/org/alfresco/components/form/controls/info.ftl" />
</field>
<field id="digipaperdemowf:fourReviewCommentFinal" set="comments">
<control template="/org/alfresco/components/form/controls/info.ftl" />
</field>
<field id="digipaperdemowf:fiveReviewCommentFinal" set="comments">
<control template="/org/alfresco/components/form/controls/info.ftl" />
</field>
<set id="assignee" appearance="title" label-id="workflow.set.assignees" />
<field id="digipaperdemowf:assignee1" label-id="workflow.field.reviewer" set="assignee"> </field>
<field id="digipaperdemowf:assignee2" label-id="workflow.field.reviewer" set="assignee"> </field>
<field id="digipaperdemowf:assignee3" label-id="workflow.field.reviewer" set="assignee"> </field>
<field id="digipaperdemowf:assignee4" label-id="workflow.field.reviewer" set="assignee"> </field>
<field id="digipaperdemowf:assignee5" label-id="workflow.field.reviewer" set="assignee"> </field>
<field id="taskOwner" set="info" />
<field id="bpm:taskId" set="info">
<control template="/org/alfresco/components/form/controls/info.ftl" />
</field>
<field id="bpm: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="bpm:status" set="progress" />
<field id="packageItems" set="items" />
<field id="transitions" set="response" />
</appearance>
</form>
</forms>
</config>
<config evaluator="string-compare" condition="DocumentLibrary">
<aspects>
<visible>
<!-- Seznam aspektů začátek -->
<aspect label="Assignees" name="digipaperdemowf:assignees" />
<!-- Seznam aspektů konec -->
</visible>
<addable>
</addable>
<removeable>
</removeable>
</aspects>
<types>
<type name="cm:content">
<!-- Seznam typů dokumentů začátek -->
<!-- <subtype label="jmeno" name="NaP:NaP_zak_obj" /> -->
<!-- Seznam typů dokumentů konec -->
</type>
<type name="cm:folder">
<!-- Seznam typů složek začátek -->
<!-- <subtype label="Zakázka" name="NaP:NaP_slozka_zakazka" /> -->
<!-- Seznam typů složek konec -->
</type>
</types>
</config>
</alfresco-config>
digipaperWorkflowDemo.bpmn.xml
<?xml version="1.0" encoding="UTF-8"?>
<definitions xmlns="http://www.omg.org/spec/BPMN/20100524/MODEL" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:activiti="http://activiti.org/bpmn" xmlns:bpmndi="http://www.omg.org/spec/BPMN/20100524/DI" xmlns:omgdc="http://www.omg.org/spec/DD/20100524/DC" xmlns:omgdi="http://www.omg.org/spec/DD/20100524/DI" typeLanguage="http://www.w3.org/2001/XMLSchema" expressionLanguage="http://www.w3.org/1999/XPath" targetNamespace="http://www.digipaper.cz/alfresco/digipaper/diagram/demowf">
<process id="DigipaperDigipaperDemoWf" name="Digipaper Demo Workflow" isExecutable="true">
<startEvent id="alfrescoStartevent1" name="Alfresco start" activiti:formKey="digipaperdemowf:start">
<extensionElements>
<activiti:executionListener event="start" class="org.alfresco.repo.workflow.activiti.tasklistener.ScriptTaskListener">
<activiti:field name="script">
<activiti:string><![CDATA[execution.setVariable('firstActivitiScriptNodeVar', task.getVariable('digipaperdemowf_assignee1'));
execution.setVariable('secondActivitiScriptNodeVar', task.getVariable('digipaperdemowf_assignee2'));
execution.setVariable('threeActivitiScriptNodeVar', task.getVariable('digipaperdemowf_assignee3'));
execution.setVariable('fourActivitiScriptNodeVar', task.getVariable('digipaperdemowf_assignee4'));
execution.setVariable('fiveActivitiScriptNodeVar', task.getVariable('digipaperdemowf_assignee5'));]]></activiti:string>
</activiti:field>
</activiti:executionListener>
</extensionElements>
</startEvent>
<sequenceFlow id="flowStartToFirstReview" sourceRef="alfrescoStartevent1" targetRef="usertask1"></sequenceFlow>
<userTask id="usertask1" name="Schválení dokumentu 1" activiti:assignee="${firstActivitiScriptNodeVar.properties.userName}" activiti:formKey="digipaperdemowf:firstReview">
<extensionElements>
<activiti:taskListener event="complete" class="org.alfresco.repo.workflow.activiti.tasklistener.ScriptTaskListener">
<activiti:field name="script">
<activiti:string><![CDATA[
var firstComment = task.getVariable('digipaperdemowf_firstReviewComment');
execution.setVariable('digipaperdemowf_firstReviewComment', firstComment);
var out = task.getVariable('digipaperdemowf_reviewOutcome1');
execution.setVariable('digipaperdemowf_reviewOutcome1', out);
task.setVariableLocal('bpm_comment', out + " (" + firstComment + ")");
execution.setVariable('firstActivitiScriptNodeVar', task.getVariable('digipaperdemowf_assignee1'));
execution.setVariable('secondActivitiScriptNodeVar', task.getVariable('digipaperdemowf_assignee2'));
execution.setVariable('threeActivitiScriptNodeVar', task.getVariable('digipaperdemowf_assignee3'));
execution.setVariable('fourActivitiScriptNodeVar', task.getVariable('digipaperdemowf_assignee4'));
execution.setVariable('fiveActivitiScriptNodeVar', task.getVariable('digipaperdemowf_assignee5'));
if (out != "Schválit") {
execution.setVariable('bpm_workflowDescription', bpm_workflowDescription + " : Zamítnuto");
} else {
execution.setVariable('bpm_workflowDescription', bpm_workflowDescription + " : Schváleno");
}]]></activiti:string>
</activiti:field>
</activiti:taskListener>
</extensionElements>
</userTask>
<sequenceFlow id="flowFirstReviewToExclusive" sourceRef="usertask1" targetRef="exclusivegateway1"></sequenceFlow>
<exclusiveGateway id="exclusivegateway1" name="Exclusive Gateway"></exclusiveGateway>
<sequenceFlow id="flowExclusiveToSecondReview" sourceRef="exclusivegateway1" targetRef="usertask6">
<conditionExpression xsi:type="tFormalExpression"><![CDATA[${digipaperdemowf_reviewOutcome1 == 'Schválit'}]]></conditionExpression>
</sequenceFlow>
<sequenceFlow id="flowExclusiveToVysledek" sourceRef="exclusivegateway1" targetRef="usertask3">
<conditionExpression xsi:type="tFormalExpression"><![CDATA[${digipaperdemowf_reviewOutcome1 == 'Zamítnout'}]]></conditionExpression>
</sequenceFlow>
<userTask id="usertask3" name="Výsledek schvalování" activiti:assignee="${initiator.properties.userName}" activiti:formKey="digipaperdemowf:finalReview">
<extensionElements>
<activiti:taskListener event="create" class="org.alfresco.repo.workflow.activiti.tasklistener.ScriptTaskListener">
<activiti:field name="script">
<activiti:string><![CDATA[task.setVariableLocal('digipaperdemowf_firstReviewCommentFinal',
digipaperdemowf_firstReviewComment);
task.setVariableLocal('digipaperdemowf_secondReviewCommentFinal',
digipaperdemowf_firstReviewComment);
task.setVariableLocal('digipaperdemowf_threeReviewCommentFinal',
digipaperdemowf_firstReviewComment);
task.setVariableLocal('digipaperdemowf_fourReviewCommentFinal',
digipaperdemowf_firstReviewComment);
task.setVariableLocal('digipaperdemowf_fiveReviewCommentFinal',
digipaperdemowf_firstReviewComment);]]></activiti:string>
</activiti:field>
</activiti:taskListener>
</extensionElements>
</userTask>
<sequenceFlow id="flowFinalReviewToEnd" sourceRef="usertask3" targetRef="endevent1"></sequenceFlow>
<endEvent id="endevent1" name="End"></endEvent>
<userTask id="usertask6" name="Schválení dokumentu 2" activiti:assignee="${secondActivitiScriptNodeVar.properties.userName}" activiti:formKey="digipaperdemowf:secondReview">
<extensionElements>
<activiti:taskListener event="complete" class="org.alfresco.repo.workflow.activiti.tasklistener.ScriptTaskListener">
<activiti:field name="script">
<activiti:string><![CDATA[var secondComment = task.getVariable('digipaperdemowf_secondReviewComment');
execution.setVariable('digipaperdemowf_secondReviewComment', secondComment);
var out = task.getVariable('digipaperdemowf_reviewOutcome2');
execution.setVariable('digipaperdemowf_reviewOutcome2', out);
task.setVariableLocal('bpm_comment', out + " (" + secondComment + ")");
execution.setVariable('firstActivitiScriptNodeVar', task.getVariable('digipaperdemowf_assignee1'));
execution.setVariable('secondActivitiScriptNodeVar', task.getVariable('digipaperdemowf_assignee2'));
execution.setVariable('threeActivitiScriptNodeVar', task.getVariable('digipaperdemowf_assignee3'));
execution.setVariable('fourActivitiScriptNodeVar', task.getVariable('digipaperdemowf_assignee4'));
execution.setVariable('fiveActivitiScriptNodeVar', task.getVariable('digipaperdemowf_assignee5'));
if (out != "Schválit") {
execution.setVariable('bpm_workflowDescription', bpm_workflowDescription + " : Zamítnuto");
} else {
execution.setVariable('bpm_workflowDescription', bpm_workflowDescription + " : Schváleno");
}]]></activiti:string>
</activiti:field>
</activiti:taskListener>
</extensionElements>
</userTask>
<userTask id="usertask7" name="Schválení dokumentu 3" activiti:assignee="${threeActivitiScriptNodeVar.properties.userName}" activiti:formKey="digipaperdemowf:threeReview">
<extensionElements>
<activiti:taskListener event="complete" class="org.alfresco.repo.workflow.activiti.tasklistener.ScriptTaskListener">
<activiti:field name="script">
<activiti:string><![CDATA[var threeComment = task.getVariable('digipaperdemowf_threeReviewComment');
execution.setVariable('digipaperdemowf_threeReviewComment', threeComment);
var out = task.getVariable('digipaperdemowf_reviewOutcome3');
execution.setVariable('digipaperdemowf_reviewOutcome3', out);
task.setVariableLocal('bpm_comment', out + " (" + threeComment + ")");
execution.setVariable('firstActivitiScriptNodeVar', task.getVariable('digipaperdemowf_assignee1'));
execution.setVariable('secondActivitiScriptNodeVar', task.getVariable('digipaperdemowf_assignee2'));
execution.setVariable('threeActivitiScriptNodeVar', task.getVariable('digipaperdemowf_assignee3'));
execution.setVariable('fourActivitiScriptNodeVar', task.getVariable('digipaperdemowf_assignee4'));
execution.setVariable('fiveActivitiScriptNodeVar', task.getVariable('digipaperdemowf_assignee5'));
if (out != "Schválit") {
execution.setVariable('bpm_workflowDescription', bpm_workflowDescription + " : Zamítnuto");
} else {
execution.setVariable('bpm_workflowDescription', bpm_workflowDescription + " : Schváleno");
}]]></activiti:string>
</activiti:field>
</activiti:taskListener>
</extensionElements>
</userTask>
<userTask id="usertask8" name="Schválení dokumentu 4" activiti:assignee="${fourActivitiScriptNodeVar.properties.userName}" activiti:formKey="digipaperdemowf:fourReview">
<extensionElements>
<activiti:taskListener event="complete" class="org.alfresco.repo.workflow.activiti.tasklistener.ScriptTaskListener">
<activiti:field name="script">
<activiti:string><![CDATA[var fourComment = task.getVariable('digipaperdemowf_fourReviewComment');
execution.setVariable('digipaperdemowf_fourReviewComment', fourComment);
var out = task.getVariable('digipaperdemowf_reviewOutcome4');
execution.setVariable('digipaperdemowf_reviewOutcome4', out);
task.setVariableLocal('bpm_comment', out + " (" + fourComment + ")");
execution.setVariable('firstActivitiScriptNodeVar', task.getVariable('digipaperdemowf_assignee1'));
execution.setVariable('secondActivitiScriptNodeVar', task.getVariable('digipaperdemowf_assignee2'));
execution.setVariable('threeActivitiScriptNodeVar', task.getVariable('digipaperdemowf_assignee3'));
execution.setVariable('fourActivitiScriptNodeVar', task.getVariable('digipaperdemowf_assignee4'));
execution.setVariable('fiveActivitiScriptNodeVar', task.getVariable('digipaperdemowf_assignee5'));
if (out != "Schválit") {
execution.setVariable('bpm_workflowDescription', bpm_workflowDescription + " : Zamítnuto");
} else {
execution.setVariable('bpm_workflowDescription', bpm_workflowDescription + " : Schváleno");
}]]></activiti:string>
</activiti:field>
</activiti:taskListener>
</extensionElements>
</userTask>
<userTask id="usertask9" name="Schválení dokumentu 5" activiti:assignee="${fiveActivitiScriptNodeVar.properties.userName}" activiti:formKey="digipaperdemowf:fiveReview">
<extensionElements>
<activiti:taskListener event="complete" class="org.alfresco.repo.workflow.activiti.tasklistener.ScriptTaskListener">
<activiti:field name="script">
<activiti:string><![CDATA[var fiveComment = task.getVariable('digipaperdemowf_fiveReviewComment');
execution.setVariable('digipaperdemowf_fiveReviewComment', fiveComment);
var out = task.getVariable('digipaperdemowf_reviewOutcome5');
execution.setVariable('digipaperdemowf_reviewOutcome5', out);
task.setVariableLocal('bpm_comment', out + " (" + fiveComment + ")");
execution.setVariable('firstActivitiScriptNodeVar', task.getVariable('digipaperdemowf_assignee1'));
execution.setVariable('secondActivitiScriptNodeVar', task.getVariable('digipaperdemowf_assignee2'));
execution.setVariable('threeActivitiScriptNodeVar', task.getVariable('digipaperdemowf_assignee3'));
execution.setVariable('fourActivitiScriptNodeVar', task.getVariable('digipaperdemowf_assignee4'));
execution.setVariable('fiveActivitiScriptNodeVar', task.getVariable('digipaperdemowf_assignee5'));
if (out != "Schválit") {
execution.setVariable('bpm_workflowDescription', bpm_workflowDescription + " : Zamítnuto");
} else {
execution.setVariable('bpm_workflowDescription', bpm_workflowDescription + " : Schváleno");
}]]></activiti:string>
</activiti:field>
</activiti:taskListener>
</extensionElements>
</userTask>
<exclusiveGateway id="exclusivegateway2" name="Exclusive Gateway"></exclusiveGateway>
<sequenceFlow id="flowSecondReviewToExclusive" sourceRef="usertask6" targetRef="exclusivegateway2"></sequenceFlow>
<sequenceFlow id="flow5" sourceRef="exclusivegateway2" targetRef="usertask7">
<conditionExpression xsi:type="tFormalExpression"><![CDATA[${digipaperdemowf_reviewOutcome2 == 'Schválit'}]]></conditionExpression>
</sequenceFlow>
<sequenceFlow id="flow6" sourceRef="exclusivegateway2" targetRef="usertask3">
<conditionExpression xsi:type="tFormalExpression"><![CDATA[${digipaperdemowf_reviewOutcome2 == 'Zamítnout'}]]></conditionExpression>
</sequenceFlow>
<exclusiveGateway id="exclusivegateway3" name="Exclusive Gateway"></exclusiveGateway>
<sequenceFlow id="flowThreeReviewToExclusive" sourceRef="usertask7" targetRef="exclusivegateway3"></sequenceFlow>
<sequenceFlow id="flow8" sourceRef="exclusivegateway3" targetRef="usertask8">
<conditionExpression xsi:type="tFormalExpression"><![CDATA[${digipaperdemowf_reviewOutcome3 == 'Schválit'}]]></conditionExpression>
</sequenceFlow>
<sequenceFlow id="flow9" sourceRef="exclusivegateway3" targetRef="usertask3">
<conditionExpression xsi:type="tFormalExpression"><![CDATA[${digipaperdemowf_reviewOutcome3 == 'Zamítnout'}]]></conditionExpression>
</sequenceFlow>
<exclusiveGateway id="exclusivegateway4" name="Exclusive Gateway"></exclusiveGateway>
<sequenceFlow id="flowFourReviewToExclusive" sourceRef="usertask8" targetRef="exclusivegateway4"></sequenceFlow>
<sequenceFlow id="flow11" sourceRef="exclusivegateway4" targetRef="usertask9">
<conditionExpression xsi:type="tFormalExpression"><![CDATA[${digipaperdemowf_reviewOutcome4 == 'Schválit'}]]></conditionExpression>
</sequenceFlow>
<sequenceFlow id="flow12" sourceRef="exclusivegateway4" targetRef="usertask3">
<conditionExpression xsi:type="tFormalExpression"><![CDATA[${digipaperdemowf_reviewOutcome4 == 'Zamítnout'}]]></conditionExpression>
</sequenceFlow>
<sequenceFlow id="flowDoVysledku" sourceRef="usertask9" targetRef="usertask3"></sequenceFlow>
</process>
<bpmndi:BPMNDiagram id="BPMNDiagram_DigipaperDigipaperDemoWf">
<bpmndi:BPMNPlane bpmnElement="DigipaperDigipaperDemoWf" id="BPMNPlane_DigipaperDigipaperDemoWf">
<bpmndi:BPMNShape bpmnElement="alfrescoStartevent1" id="BPMNShape_alfrescoStartevent1">
<omgdc:Bounds height="35.0" width="35.0" x="120.0" y="158.0"></omgdc:Bounds>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape bpmnElement="usertask1" id="BPMNShape_usertask1">
<omgdc:Bounds height="58.0" width="105.0" x="253.0" y="147.0"></omgdc:Bounds>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape bpmnElement="exclusivegateway1" id="BPMNShape_exclusivegateway1">
<omgdc:Bounds height="40.0" width="40.0" x="442.0" y="157.0"></omgdc:Bounds>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape bpmnElement="usertask3" id="BPMNShape_usertask3">
<omgdc:Bounds height="61.0" width="105.0" x="880.0" y="394.0"></omgdc:Bounds>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape bpmnElement="endevent1" id="BPMNShape_endevent1">
<omgdc:Bounds height="35.0" width="35.0" x="1080.0" y="407.0"></omgdc:Bounds>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape bpmnElement="usertask6" id="BPMNShape_usertask6">
<omgdc:Bounds height="58.0" width="105.0" x="550.0" y="149.0"></omgdc:Bounds>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape bpmnElement="usertask7" id="BPMNShape_usertask7">
<omgdc:Bounds height="58.0" width="105.0" x="550.0" y="310.0"></omgdc:Bounds>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape bpmnElement="usertask8" id="BPMNShape_usertask8">
<omgdc:Bounds height="58.0" width="105.0" x="550.0" y="455.0"></omgdc:Bounds>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape bpmnElement="usertask9" id="BPMNShape_usertask9">
<omgdc:Bounds height="58.0" width="105.0" x="550.0" y="594.0"></omgdc:Bounds>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape bpmnElement="exclusivegateway2" id="BPMNShape_exclusivegateway2">
<omgdc:Bounds height="40.0" width="40.0" x="582.0" y="238.0"></omgdc:Bounds>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape bpmnElement="exclusivegateway3" id="BPMNShape_exclusivegateway3">
<omgdc:Bounds height="40.0" width="40.0" x="582.0" y="404.0"></omgdc:Bounds>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape bpmnElement="exclusivegateway4" id="BPMNShape_exclusivegateway4">
<omgdc:Bounds height="40.0" width="40.0" x="582.0" y="526.0"></omgdc:Bounds>
</bpmndi:BPMNShape>
<bpmndi:BPMNEdge bpmnElement="flowStartToFirstReview" id="BPMNEdge_flowStartToFirstReview">
<omgdi:waypoint x="155.0" y="175.0"></omgdi:waypoint>
<omgdi:waypoint x="253.0" y="176.0"></omgdi:waypoint>
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge bpmnElement="flowFirstReviewToExclusive" id="BPMNEdge_flowFirstReviewToExclusive">
<omgdi:waypoint x="358.0" y="176.0"></omgdi:waypoint>
<omgdi:waypoint x="442.0" y="177.0"></omgdi:waypoint>
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge bpmnElement="flowExclusiveToSecondReview" id="BPMNEdge_flowExclusiveToSecondReview">
<omgdi:waypoint x="482.0" y="177.0"></omgdi:waypoint>
<omgdi:waypoint x="550.0" y="178.0"></omgdi:waypoint>
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge bpmnElement="flowExclusiveToVysledek" id="BPMNEdge_flowExclusiveToVysledek">
<omgdi:waypoint x="462.0" y="157.0"></omgdi:waypoint>
<omgdi:waypoint x="461.0" y="81.0"></omgdi:waypoint>
<omgdi:waypoint x="612.0" y="81.0"></omgdi:waypoint>
<omgdi:waypoint x="932.0" y="81.0"></omgdi:waypoint>
<omgdi:waypoint x="932.0" y="394.0"></omgdi:waypoint>
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge bpmnElement="flowFinalReviewToEnd" id="BPMNEdge_flowFinalReviewToEnd">
<omgdi:waypoint x="985.0" y="424.0"></omgdi:waypoint>
<omgdi:waypoint x="1080.0" y="424.0"></omgdi:waypoint>
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge bpmnElement="flowSecondReviewToExclusive" id="BPMNEdge_flowSecondReviewToExclusive">
<omgdi:waypoint x="602.0" y="207.0"></omgdi:waypoint>
<omgdi:waypoint x="602.0" y="238.0"></omgdi:waypoint>
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge bpmnElement="flow5" id="BPMNEdge_flow5">
<omgdi:waypoint x="602.0" y="278.0"></omgdi:waypoint>
<omgdi:waypoint x="602.0" y="310.0"></omgdi:waypoint>
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge bpmnElement="flow6" id="BPMNEdge_flow6">
<omgdi:waypoint x="622.0" y="258.0"></omgdi:waypoint>
<omgdi:waypoint x="778.0" y="257.0"></omgdi:waypoint>
<omgdi:waypoint x="932.0" y="394.0"></omgdi:waypoint>
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge bpmnElement="flowThreeReviewToExclusive" id="BPMNEdge_flowThreeReviewToExclusive">
<omgdi:waypoint x="602.0" y="368.0"></omgdi:waypoint>
<omgdi:waypoint x="602.0" y="404.0"></omgdi:waypoint>
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge bpmnElement="flow8" id="BPMNEdge_flow8">
<omgdi:waypoint x="582.0" y="424.0"></omgdi:waypoint>
<omgdi:waypoint x="602.0" y="455.0"></omgdi:waypoint>
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge bpmnElement="flow9" id="BPMNEdge_flow9">
<omgdi:waypoint x="622.0" y="424.0"></omgdi:waypoint>
<omgdi:waypoint x="880.0" y="424.0"></omgdi:waypoint>
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge bpmnElement="flowFourReviewToExclusive" id="BPMNEdge_flowFourReviewToExclusive">
<omgdi:waypoint x="602.0" y="513.0"></omgdi:waypoint>
<omgdi:waypoint x="602.0" y="526.0"></omgdi:waypoint>
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge bpmnElement="flow11" id="BPMNEdge_flow11">
<omgdi:waypoint x="602.0" y="566.0"></omgdi:waypoint>
<omgdi:waypoint x="602.0" y="594.0"></omgdi:waypoint>
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge bpmnElement="flow12" id="BPMNEdge_flow12">
<omgdi:waypoint x="622.0" y="546.0"></omgdi:waypoint>
<omgdi:waypoint x="776.0" y="546.0"></omgdi:waypoint>
<omgdi:waypoint x="932.0" y="455.0"></omgdi:waypoint>
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge bpmnElement="flowDoVysledku" id="BPMNEdge_flowDoVysledku">
<omgdi:waypoint x="655.0" y="623.0"></omgdi:waypoint>
<omgdi:waypoint x="932.0" y="622.0"></omgdi:waypoint>
<omgdi:waypoint x="932.0" y="455.0"></omgdi:waypoint>
</bpmndi:BPMNEdge>
</bpmndi:BPMNPlane>
</bpmndi:BPMNDiagram>
</definitions>

Please, anyone can help me?