Contribution org.nuxeo.ecm.platform.routing.dm.operation.chains--chains
In component org.nuxeo.ecm.platform.routing.dm.operation.chains
org.nuxeo.ecm.platform.routing.dm.operation.chains
inside nuxeo-routing-dm-9.10.jar /OSGI-INF/dm-task-operation-chains-contrib.xml
This contribution is part of XML component Extension Point
Extension point chains of component OperationServiceComponent.Contributed Items
XML Source
<extension point="chains" target="org.nuxeo.ecm.core.operation.OperationServiceComponent">
<chain id="simpleTask">
<operation id="Context.FetchDocument"/>
<operation id="Workflow.CreateRoutingTask">
<param name="accept operation chain" type="string">
setTaskDone
</param>
<param name="reject operation chain" type="string">
setTaskDone
</param>
<param name="mappingProperties" type="Properties">
<property key="dc:description">StepTask:dc:description</property>
<property key="nt:directive">StepTask:dc:description</property>
</param>
</operation>
<operation id="Context.RunDocumentOperationInNewTx">
<param name="rollbackGlobalOnError" type="boolean">false</param>
<param name="id" type="string">sendTaskCreatedNotificationMail
</param>
</operation>
</chain>
<chain id="followLifeCycleTransitionTask">
<operation id="Context.FetchDocument"/>
<operation id="Workflow.CreateRoutingTask">
<param name="accept operation chain" type="string">
followLifeCycleTransition
</param>
<param name="reject operation chain" type="string">
setTaskDone
</param>
<param name="mappingProperties" type="Properties">
<property key="dc:description">StepTask:dc:description</property>
</param>
</operation>
<operation id="Context.RunDocumentOperationInNewTx">
<param name="rollbackGlobalOnError" type="boolean">false</param>
<param name="id" type="string">sendTaskCreatedNotificationMail
</param>
</operation>
</chain>
<chain id="publishTask">
<operation id="Context.FetchDocument"/>
<operation id="Workflow.CreateRoutingTask">
<param name="accept operation chain" type="string">
publishDocument
</param>
<param name="reject operation chain" type="string">
setTaskDone
</param>
<param name="mappingProperties" type="Properties">
<property key="dc:description">StepTask:dc:description</property>
</param>
</operation>
<operation id="Context.RunDocumentOperationInNewTx">
<param name="rollbackGlobalOnError" type="boolean">false</param>
<param name="id" type="string">sendTaskCreatedNotificationMail
</param>
</operation>
</chain>
<chain id="conditionalTask">
<operation id="Context.FetchDocument"/>
<operation id="Workflow.CreateRoutingTask">
<param name="accept operation chain" type="string">
evaluateCondition
</param>
<param name="reject operation chain" type="string">
setTaskDone
</param>
<param name="mappingProperties" type="Properties">
<property key="dc:description">StepTask:dc:description</property>
</param>
</operation>
<operation id="Context.RunDocumentOperationInNewTx">
<param name="rollbackGlobalOnError" type="boolean">false</param>
<param name="id" type="string">sendTaskCreatedNotificationMail
</param>
</operation>
</chain>
<chain id="setTaskDone">
<operation id="Document.Routing.SetRunningStepFromTask">
<param name="mappingComments" type="boolean">true</param>
</operation>
<operation id="Document.Routing.Resume.Step"/>
</chain>
<chain id="undoRunningTask">
<operation id="Workflow.RemoveRoutingTask"/>
<operation id="Document.Routing.BackToReady"/>
</chain>
<chain id="followLifeCycleTransition">
<operation id="Context.FetchDocument"/>
<operation id="Document.Routing.SetRunningStepFromTask"/>
<operation id="Document.FollowLifecycleTransition">
<param name="value" type="string">expr:Context["document.routing.step"].getDocument().getPropertyValue("tkst:directive")
</param>
</operation>
<operation id="Document.Routing.Resume.Step"/>
</chain>
<chain id="publishDocument">
<operation id="Context.FetchDocument"/>
<operation id="Document.Routing.SetRunningStepFromTask"/>
<operation id="Document.Publish">
<param name="target" type="string">expr:Context["document.routing.step"].getDocument().getPropertyValue("tkst:directive")
</param>
</operation>
<operation id="Document.Routing.Resume.Step"/>
</chain>
<chain id="evaluateCondition">
<operation id="Context.FetchDocument"/>
<operation id="Document.Routing.SetRunningStepFromTask"/>
<operation id="Document.Routing.EvaluateCondition">
<param name="subject" type="string">expr:Context["document.routing.step"].getDocument().getPropertyValue("ctkst:subject")
</param>
<param name="operator" type="string">expr:Context["document.routing.step"].getDocument().getPropertyValue("ctkst:operator")
</param>
<param name="value" type="string">expr:Context["document.routing.step"].getDocument().getPropertyValue("ctkst:value")
</param>
</operation>
<operation id="Update.NextStep.ConditionalFolder">
<param name="nextStepPos" type="string">expr:Context['nextStepPos']
</param>
</operation>
<operation id="Document.Routing.Resume.Step"/>
</chain>
<chain id="sendTaskCreatedNotificationMail">
<operation id="Notification.SendMail">
<param name="from" type="string">Administrator@nuxeo.com</param>
<param name="message" type="string">template:routingTaskAssigned
</param>
<param name="subject" type="string">expr:Context["document.routing.step"].getDocument().getPropertyValue("dc:title")
</param>
<param name="to" type="stringlist">expr:Fn.getEmails(Context["document.routing.task.actors"])
</param>
<param name="HTML" type="boolean">false</param>
</operation>
</chain>
</extension>