08-04-2011 11:41 AM
<process-definition xmlns="urn:jbpm.org:jpdl-3.2" name="siiw:EntreeProjet">
…
<swimlane name="initiator"/>
…
<start-state name="WEntreePrj_deposerBrouillon">
<task name="siiw:WEntreePrj_deposerBrouillon" swimlane="initiator" />
<transition name="" to="WEntreePrj_T1_controle_verif_sii"></transition>
</start-state>
<task-node name="WEntreePrj_T1_controle_verif_sii">
<task name="siiw:WEntreePrj_T1_controle_verif_sii" swimlane="verificateursSii" />
<transition to="WEntreePrj_BrouillonVerifie?" name="brouillon_verifie">
<script>
<variable name="brouillon_verifie" access="read,write"/>
<expression>
brouillon_verifie = true;
</expression>
</script>
</transition>
<transition to="WEntreePrj_BrouillonVerifie?" name="brouillon_rejete"></transition>
</task-node>
…
<model name="siiw:GedSiiWorkflowsModels" 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"/>
</imports>
<namespaces>
<namespace uri="http://www.sii.fr/model/workflow/1.0" prefix="siiw"/>
</namespaces>
…
<type name="siiw:WEntreePrj_deposerBrouillon">
<parent>bpm:startTask</parent>
</type>
<type name="siiw:WEntreePrj_T1_controle_verif_sii">
<parent>bpm:workflowTask</parent>
</type>
<alfresco-config>
…
<config evaluator="task-type" condition="siiw:WEntreePrj_deposerBrouillon">
<forms>
<form>
<field-visibility>
<show id="bpm:description" />
<show id="bpm:workflowPriority" />
<show id="packageItems" />
<hide id="bpm:workflowDescription" />
<hide id="bpm:workflowDueDate" />
<hide id="bpm:dueDate" />
<hide id="bpm:status" />
<hide id="bpm:percentComplete" />
<hide id="bpm:comment" />
</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="items" appearance="title" label-id="workflow.set.items" />
<set id="descriptionEtape" appearance="" label-id="siiw_GedSiiWorkflowsModels.property.siiw_description_etape" />
<field id="siiw:description_etape" read-only="true" set="descriptionEtape">
<control template="/org/alfresco/components/form/controls/info.ftl" />
</field>
<field id="bpm:workflowPriority" label-id="workflow.field.priority" set="info" read-only="true">
<control template="/org/alfresco/components/form/controls/workflow/priority.ftl" />
</field>
<field id="packageItems" set="items" mandatory="true" />
</appearance>
</form>
</forms>
</config>
<config evaluator="task-type" condition="siiw:WEntreePrj_T1_controle_verif_sii">
<forms>
<form>
<field-visibility>
<show id="bpm:description" />
<show id="bpm:workflowPriority" />
<show id="packageItems" />
<hide id="bpm:workflowDescription" />
<hide id="bpm:workflowDueDate" />
<hide id="bpm:dueDate" />
<hide id="bpm:status" />
<hide id="bpm:percentComplete" />
<hide id="bpm:comment" />
</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="items" appearance="title" label-id="workflow.set.items" />
<set id="descriptionEtape" appearance="" label-id="siiw_GedSiiWorkflowsModels.property.siiw_description_etape" />
<field id="siiw:description_etape" read-only="true" set="descriptionEtape">
<control template="/org/alfresco/components/form/controls/info.ftl" />
</field>
<field id="bpm:workflowPriority" label-id="workflow.field.priority" set="info" read-only="true">
<control template="/org/alfresco/components/form/controls/workflow/priority.ftl" />
</field>
<field id="packageItems" set="items" mandatory="true" />
</appearance>
</form>
</forms>
</config>
08-08-2011 04:06 AM
08-08-2011 10:28 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.