08-30-2012 11:22 AM
08-31-2012 02:46 AM
08-31-2012 03:32 AM
<association name="drp:Approvator">
<title>Approvator</title>
<source>
<mandatory>false</mandatory>
<many>true</many>
</source>
<target>
<class>cm:person</class>
<mandatory>false</mandatory>
<many>true</many>
</target>
</association>
Is this a correct solution? If yes, for the moment I'm not able to have this bahaviour (surely something is wrong!).08-31-2012 04:17 AM
<aspects>
<aspect name="custom:approver">
<associations>
<association name="custom:approver">
<source>
<mandatory>false</mandatory>
<many>false</many>
</source>
<target>
<class>cm:person</class>
<mandatory>true</mandatory>
<many>false</many>
</target>
</association>
</associations>
</aspect>
</aspects>
<type name="custom:startWorkflowTask">
<parent>bpm:startTask</parent>
<mandatory-aspects>
<aspect>custom:approver</aspect>
</mandatory-aspects>
</type>
<process id="customWorkflowName" name="My Custom Workflow">
<startEvent id="start" activiti:formKey="custom:startWorkflowTask" />
<config evaluator="string-compare" condition="activiti$customWorkflowName">
<forms>
<form>
<field-visibility>
<show id="custom:approver" />
</field-visibility>
<appearance>
<set id="assignee" appearance="title" label-id="workflow.set.assignee" />
<field id="custom:approver" label-id="workflow.field.reviewer" set="assignee" />
</appearance>
</config>
08-31-2012 05:21 AM
<?xml version="1.0" encoding="UTF-8"?>
<model name="wf: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/system/1.0" prefix="sys" />
<import uri="http://www.alfresco.org/model/content/1.0" prefix="cm" />
<import uri="http://www.alfresco.org/model/user/1.0" prefix="usr" />
<import uri="http://www.alfresco.org/model/bpm/1.0" prefix="bpm" />
</imports>
<namespaces>
<namespace uri="http://www.alfresco.org/model/workflow/1.0" prefix="wf" />
<namespace uri="http://www.alfresco.org/drp/model/1.0" prefix="drp" />
</namespaces>
<types>
<type name="drp:startWorkflowTask">
<parent>bpm:startTask</parent>
<mandatory-aspects>
<aspect>drp:aspApprovation</aspect>
</mandatory-aspects>
</type>
</types>
<aspects>
<aspect name="drp:aspApprovation">
<associations>
<association name="drp:approver">
<source>
<mandatory>false</mandatory>
<many>false</many>
</source>
<target>
<class>cm:person</class>
<mandatory>true</mandatory>
<many>false</many>
</target>
</association>
</associations>
</aspect>
</aspects>
</model>
with type drp:startWorkflowTask and aspect drp:aspApprovation containing drp:approver association of cmerson.
<startEvent id="start" name="Start" activiti:formKey="drp:startWorkflowTask"></startEvent>
<config evaluator="string-compare" condition="activiti$Approvation">
<forms>
<form>
<field-visibility>
<show id="bpm:workflowDescription" />
<show id="bpm:workflowDueDate" />
<show id="bpm:workflowPriority" />
<show id="bpm:assignees" />
<show id="drp:approver" force="true"/>
<show id="wf:requiredApprovePercent" />
<show id="packageItems" />
<show id="bpm:sendEMailNotifications" />
</field-visibility>
<appearance>
<set id="" appearance="title" label-id="workflow.set.general" />
<set id="info" appearance="" template="/org/alfresco/components/form/2-column-set.ftl" />
<set id="assignee" appearance="title" label-id="workflow.set.assignees" />
<set id="items" appearance="title" label-id="workflow.set.items" />
<set id="other" appearance="title" label-id="workflow.set.other" />
<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>
<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>
<field id="wf:requiredApprovePercent" set="assignee" />
<field id="bpm:assignees" label="Revisors" set="assignee" />
<field id="drp:approver" label="Approvator" set="assignee" />
<field id="packageItems" set="items" />
<field id="bpm:sendEMailNotifications" set="other">
<control template="/org/alfresco/components/form/controls/workflow/email-notification.ftl" />
</field>
</appearance>
</form>
</forms>
</config>
08-31-2012 05:40 AM
08-31-2012 06:03 AM
<model name="drp:customworkflowmodel" xmlns="http://www.alfresco.org/model/dictionary/1.0">
…
<process id="Approvation" name="DRP Approvation">
…
08-31-2012 06:06 AM
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.