04-17-2018 04:35 AM
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?
04-18-2018 07:51 AM
This means you have used the wrong type of listener in your process. Please correct the class name for your execution listener from a ScriptTaskListener to a ScriptExecutionListener...
04-17-2018 10:46 AM
Please enable debug logging on the class org.alfresco.repo.workflow.activiti.ActivitiWorkflowEngine and try again. You should see the cause of the error logged with DEBUG level. Unfortunately, Alfresco has decided to remove any stacktrace information from error responses on the ReST layer, so you can no longer check the error details via the browser tools. Since Alfresco did include the stacktrace in the error response previously, all the old code usually does not log any error in the logfile if that error was supposed to be reported to the user via the error response - unfortunately most of the code was never adapted when the error response was stripped of its usefulness.
04-18-2018 06:20 AM
Thank you very much
now i got this DEBUG:
2018-04-18 10:17:53,732 DEBUG [workflow.activiti.ActivitiWorkflowEngine] [http-bio-8080-exec-7] Failed to start workflow activiti$DigipaperDigipaperDemoWf:35:4504.
org.activiti.engine.ActivitiIllegalArgumentException: org.alfresco.repo.workflow.activiti.tasklistener.ScriptTaskListener doesn't implement interface org.activiti.engine.delegate.ExecutionListener nor interface org.activiti.engine.delegate.JavaDelegate
at org.activiti.engine.impl.bpmn.helper.ClassDelegate.getExecutionListenerInstance(ClassDelegate.java:109)
at org.activiti.engine.impl.bpmn.helper.ClassDelegate.notify(ClassDelegate.java:95)
at org.activiti.engine.impl.pvm.runtime.AbstractEventAtomicOperation.execute(AbstractEventAtomicOperation.java:42)
at org.activiti.engine.impl.interceptor.CommandContext.performOperation(CommandContext.java:97)
at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperationSync(ExecutionEntity.java:634)
at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperation(ExecutionEntity.java:629)
at org.activiti.engine.impl.pvm.runtime.AtomicOperationProcessStart.eventNotificationsCompleted(AtomicOperationProcessStart.java:64)
at org.activiti.engine.impl.pvm.runtime.AbstractEventAtomicOperation.execute(AbstractEventAtomicOperation.java:56)
at org.activiti.engine.impl.interceptor.CommandContext.performOperation(CommandContext.java:97)
at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperationSync(ExecutionEntity.java:634)
at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperation(ExecutionEntity.java:629)
at org.activiti.engine.impl.pvm.runtime.AbstractEventAtomicOperation.execute(AbstractEventAtomicOperation.java:49)
at org.activiti.engine.impl.interceptor.CommandContext.performOperation(CommandContext.java:97)
at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperationSync(ExecutionEntity.java:634)
at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperation(ExecutionEntity.java:629)
at org.activiti.engine.impl.persistence.entity.ExecutionEntity.start(ExecutionEntity.java:381)
at org.activiti.engine.impl.cmd.StartProcessInstanceCmd.execute(StartProcessInstanceCmd.java:110)
at org.activiti.engine.impl.cmd.StartProcessInstanceCmd.execute(StartProcessInstanceCmd.java:37)
at org.activiti.engine.impl.interceptor.CommandInvoker.execute(CommandInvoker.java:24)
at org.activiti.engine.impl.interceptor.CommandContextInterceptor.execute(CommandContextInterceptor.java:57)
at org.activiti.spring.SpringTransactionInterceptor$1.doInTransaction(SpringTransactionInterceptor.java:47)
at org.springframework.transaction.support.TransactionTemplate.execute(TransactionTemplate.java:131)
at org.activiti.spring.SpringTransactionInterceptor.execute(SpringTransactionInterceptor.java:45)
at org.activiti.engine.impl.interceptor.LogInterceptor.execute(LogInterceptor.java:31)
at org.activiti.engine.impl.cfg.CommandExecutorImpl.execute(CommandExecutorImpl.java:40)
at org.activiti.engine.impl.cfg.CommandExecutorImpl.execute(CommandExecutorImpl.java:35)
at org.activiti.engine.impl.RuntimeServiceImpl.startProcessInstanceById(RuntimeServiceImpl.java:109)
at org.alfresco.repo.workflow.activiti.ActivitiWorkflowEngine.startWorkflow(ActivitiWorkflowEngine.java:1094)
at org.alfresco.repo.workflow.WorkflowServiceImpl.startWorkflow(WorkflowServiceImpl.java:423)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:317)
at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
at org.alfresco.service.cmr.workflow.WorkflowPermissionInterceptor.invoke(WorkflowPermissionInterceptor.java:57)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
at org.alfresco.repo.security.permissions.impl.ExceptionTranslatorMethodInterceptor.invoke(ExceptionTranslatorMethodInterceptor.java:46)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
at org.alfresco.repo.audit.AuditMethodInterceptor.invoke(AuditMethodInterceptor.java:159)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
at org.springframework.transaction.interceptor.TransactionInterceptor$1.proceedWithInvocation(TransactionInterceptor.java:96)
at org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:260)
at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:94)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
at com.sun.proxy.$Proxy92.startWorkflow(Unknown Source)
at org.alfresco.repo.workflow.WorkflowBuilder.build(WorkflowBuilder.java:95)
at org.alfresco.repo.forms.processor.workflow.WorkflowFormPersister.persist(WorkflowFormPersister.java:76)
at org.alfresco.repo.forms.processor.workflow.WorkflowFormPersister.persist(WorkflowFormPersister.java:1)
at org.alfresco.repo.forms.processor.workflow.AbstractWorkflowFormProcessor.internalPersist(AbstractWorkflowFormProcessor.java:80)
at org.alfresco.repo.forms.processor.FilteredFormProcessor.persist(FilteredFormProcessor.java:131)
at org.alfresco.repo.forms.FormServiceImpl.saveForm(FormServiceImpl.java:138)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:317)
at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
at org.alfresco.repo.security.permissions.impl.AlwaysProceedMethodInterceptor.invoke(AlwaysProceedMethodInterceptor.java:34)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
at org.alfresco.repo.security.permissions.impl.ExceptionTranslatorMethodInterceptor.invoke(ExceptionTranslatorMethodInterceptor.java:46)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
at org.alfresco.repo.audit.AuditMethodInterceptor.invoke(AuditMethodInterceptor.java:159)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
at org.springframework.transaction.interceptor.TransactionInterceptor$1.proceedWithInvocation(TransactionInterceptor.java:96)
at org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:260)
at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:94)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
at com.sun.proxy.$Proxy164.saveForm(Unknown Source)
at org.alfresco.repo.forms.script.ScriptFormService.saveForm(ScriptFormService.java:152)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:126)
at org.mozilla.javascript.NativeJavaMethod.call(NativeJavaMethod.java:225)
at org.mozilla.javascript.optimizer.OptRuntime.callN(OptRuntime.java:52)
at org.mozilla.javascript.gen.classpath__alfresco_templates_webscripts_org_alfresco_repository_forms_form_post_json_js_6._c_main_1(classpath*:alfresco/templates/webscripts/org/alfresco/repository/forms/form.post.json.js:57)
at org.mozilla.javascript.gen.classpath__alfresco_templates_webscripts_org_alfresco_repository_forms_form_post_json_js_6.call(classpath*:alfresco/templates/webscripts/org/alfresco/repository/forms/form.post.json.js)
at org.mozilla.javascript.optimizer.OptRuntime.callName0(OptRuntime.java:74)
at org.mozilla.javascript.gen.classpath__alfresco_templates_webscripts_org_alfresco_repository_forms_form_post_json_js_6._c_script_0(classpath*:alfresco/templates/webscripts/org/alfresco/repository/forms/form.post.json.js:91)
at org.mozilla.javascript.gen.classpath__alfresco_templates_webscripts_org_alfresco_repository_forms_form_post_json_js_6.call(classpath*:alfresco/templates/webscripts/org/alfresco/repository/forms/form.post.json.js)
at org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:394)
at org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3091)
at org.mozilla.javascript.gen.classpath__alfresco_templates_webscripts_org_alfresco_repository_forms_form_post_json_js_6.call(classpath*:alfresco/templates/webscripts/org/alfresco/repository/forms/form.post.json.js)
at org.mozilla.javascript.gen.classpath__alfresco_templates_webscripts_org_alfresco_repository_forms_form_post_json_js_6.exec(classpath*:alfresco/templates/webscripts/org/alfresco/repository/forms/form.post.json.js)
at org.alfresco.repo.jscript.RhinoScriptProcessor.executeScriptImpl(RhinoScriptProcessor.java:502)
at org.alfresco.repo.jscript.RhinoScriptProcessor.execute(RhinoScriptProcessor.java:200)
at org.alfresco.repo.processor.ScriptServiceImpl.execute(ScriptServiceImpl.java:212)
at org.alfresco.repo.processor.ScriptServiceImpl.executeScript(ScriptServiceImpl.java:174)
at org.alfresco.repo.web.scripts.RepositoryScriptProcessor.executeScript(RepositoryScriptProcessor.java:102)
at org.springframework.extensions.webscripts.AbstractWebScript.executeScript(AbstractWebScript.java:1376)
at org.springframework.extensions.webscripts.DeclarativeWebScript.execute(DeclarativeWebScript.java:86)
at org.alfresco.repo.web.scripts.RepositoryContainer$3.execute(RepositoryContainer.java:512)
at org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransactionHelper.java:457)
at org.alfresco.repo.web.scripts.RepositoryContainer.transactionedExecute(RepositoryContainer.java:580)
at org.alfresco.repo.web.scripts.RepositoryContainer.transactionedExecuteAs(RepositoryContainer.java:649)
at org.alfresco.repo.web.scripts.RepositoryContainer.executeScriptInternal(RepositoryContainer.java:421)
at org.alfresco.repo.web.scripts.RepositoryContainer.executeScript(RepositoryContainer.java:301)
at org.springframework.extensions.webscripts.AbstractRuntime.executeScript(AbstractRuntime.java:378)
at org.springframework.extensions.webscripts.AbstractRuntime.executeScript(AbstractRuntime.java:209)
at org.springframework.extensions.webscripts.servlet.WebScriptServlet.service(WebScriptServlet.java:132)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:728)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:51)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
at org.alfresco.web.app.servlet.GlobalLocalizationFilter.doFilter(GlobalLocalizationFilter.java:61)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:502)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:100)
at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:953)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408)
at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1041)
at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:603)
at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:310)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
04-18-2018 07:51 AM
This means you have used the wrong type of listener in your process. Please correct the class name for your execution listener from a ScriptTaskListener to a ScriptExecutionListener...
Explore our Alfresco products with the links below. Use labels to filter content by product module.