09-07-2013 08:59 AM
<?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: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.activiti.org/test">
<process id="signatureCycle" name="Signature Cycle" isExecutable="true">
………….
<startEvent id="start" name="Start" activiti:formKey="wf:signatureCycle">
<extensionElements>
<activiti:executionListener event="start" class="org.alfresco.repo.workflow.activiti.listener.ScriptExecutionListener">
<activiti:field name="script">
<activiti:string>
execution.setVariable('wf_sect', 'AAA');
execution.setVariable('wf_dt', 'BBB');
</activiti:string>
</activiti:field>
</activiti:executionListener>
</extensionElements>
</startEvent>
………….
</definitions>
<?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/bpm/1.0" prefix="bpm"/>
</imports>
<namespaces>
<namespace uri="http://www.alfresco.org/model/workflow/1.0" prefix="wf"/>
</namespaces>
<types>
…….
<type name="wf:signatureCycle">
<parent>bpm:startTask</parent>
<mandatory-aspects>
<aspect>wf:docInfo</aspect>
</mandatory-aspects>
</type>
…….
</types>
<aspects>
……..
<aspect name="wf:docInfo">
<properties>
<property name="wf:sect">
<type>d:text</type>
<mandatory>true</mandatory>
</property>
<property name="wf:dt">
<type>d:text</type>
<mandatory>true</mandatory>
</property>
</properties>
</aspect>
…..
</aspects>
</model>
<alfresco-config>
<config evaluator="string-compare" condition="activiti$signatureCycle">
<forms>
<form>
<field-visibility>
<show id="bpm:workflowDescription" />
<show id="bpm:workflowDueDate" />
<show id="bpm:workflowPriority" />
<show id="wf:sect" />
<show id="wf:dt" />
<show id="bpm:comment" />
</field-visibility>
<appearance>
<set id="" appearance="title" label-id="workflow.set.general" />
<set id="abs" appearance="title" label-id="workflow.set.abs" />
<field id="bpm:workflowDescription" label-id="workflow.field.message">
<control template="/org/alfresco/components/form/controls/textarea.ftl">
<control-param name="style">width: 60%</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:sect" set="abs">
<control template="/org/alfresco/components/form/controls/info.ftl" />
</field>
<field id="wf:dt" set="abs">
<control template="/org/alfresco/components/form/controls/info.ftl" />
</field>
<field id="bpm:comment" label-id="workflow.field.comment"
set="response">
<control template="/org/alfresco/components/form/controls/textarea.ftl" />
</field>
</appearance>
</form>
</forms>
</config>
</alfresco-config>
09-17-2013 11:21 AM
09-20-2013 08:37 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.