05-22-2014 08:21 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"
typeLanguage="http://www.w3.org/2001/XMLSchema"
expressionLanguage="http://www.w3.org/1999/XPath"
targetNamespace="http://www.activiti.org/test">
<process id="bc2process" name="BC2 Process" isExecutable="true">
<startEvent id="eventStart" name="Start"></startEvent>
<userTask id="bc2Task" name="BC2 Task" activiti:formKey="bpm:workflowTask"></userTask>
<endEvent id="eventEnd" name="End"></endEvent>
<sequenceFlow id="flow1" sourceRef="eventStart" targetRef="bc2Task"></sequenceFlow>
<sequenceFlow id="flow2" sourceRef="bc2Task" targetRef="eventEnd"></sequenceFlow>
</process>
</definitions>
<?xml version='1.0' encoding='UTF-8'?>
<!DOCTYPE beans PUBLIC '-//SPRING//DTD BEAN//EN' 'http://www.springframework.org/dtd/spring-beans.dtd'>
<beans>
<bean id="wf-bc2process" parent="workflowDeployer">
<property name="workflowDefinitions">
<list>
<props>
<prop key="engineId">activiti</prop>
<prop key="location">alfresco/extension/bc2process.bpmn</prop>
<prop key="mimetype">text/xml</prop>
<prop key="redeploy">false</prop>
</props>
</list>
</property>
<property name="models">
<list>
<value>alfresco/model/bpmModel.xml</value>
</list>
</property>
</bean>
</beans>
…
<config evaluator="string-compare" condition="activiti$bc2process">
<forms>
<form>
<field-visibility>
<show id="bpm:assignee" />
<show id="packageItems" />
</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.assignee" />
<set id="items" appearance="title" label-id="workflow.set.items" />
<set id="other" appearance="title" label-id="workflow.set.other" />
<field id="bpm:assignee" label-id="workflow.field.assign_to" set="assignee" />
<field id="packageItems" set="items" />
</appearance>
</form>
</forms>
</config>
…
05-26-2014 04:24 AM
05-29-2014 12:20 PM
<?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="exercise11" name="Final Exercise">
<extensionElements>
<activiti:executionListener event="start" class="org.alfresco.repo.workflow.activiti.listener.ScriptExecutionListener">
<activiti:field name="script">
<activiti:string>logger.log("initializing…");</activiti:string>
</activiti:field>
</activiti:executionListener>
</extensionElements>
<startEvent id="alfrescoStartevent1" name="Alfresco start" activiti:formKey="wfge:startSopReview"></startEvent>
<userTask id="usertask1" name="Review SOP" activiti:assignee="${bpm_assignee.properties.userName}" activiti:formKey="wfge:sopReview">
<extensionElements>
<activiti:taskListener event="complete" class="org.alfresco.repo.workflow.activiti.tasklistener.ScriptTaskListener">
<activiti:field name="script">
<activiti:string>logger.log("task1 complete…");</activiti:string>
</activiti:field>
</activiti:taskListener>
</extensionElements>
</userTask>
….
<?xml version="1.0" encoding="UTF-8"?>
<model name="wfge:workflow-green-energy" xmlns="http://www.alfresco.org/model/dictionary/1.0">
<description>example</description>
<author>Training</author>
<version>1.1</version>
<imports>
<!– Import Alfresco Dictionary Definitions –>
<import uri="http://www.alfresco.org/model/dictionary/1.0" prefix="d" />
<!– Import Alfresco Content Domain Model Definitions –>
<import uri="http://www.alfresco.org/model/content/1.0" prefix="cm" />
<import uri="http://www.alfresco.org/model/bpm/1.0" prefix="bpm"/>
<import uri="http://www.alfresco.org/model/workflow/1.0" prefix="wf"/>
</imports>
<namespaces>
<namespace uri="http://www.alfresco.org/model/training/1.0" prefix="wfge"/>
</namespaces>
<types>
<type name="wfge:startSopReview">
<parent>bpm:startTask</parent>
<mandatory-aspects>
<aspect>wfge:instructionAspect</aspect>
</mandatory-aspects>
</type>
<type name="wfge:sopReview">
<parent>wf:activitiReviewTask</parent>
<mandatory-aspects>
<aspect>wfge:instructionAspect</aspect>
<aspect>bpm:assignee</aspect>
</mandatory-aspects>
</type>
….
</types>
<aspects>
<!– This aspect is used to hold the instructions –>
<aspect name="wfge:instructionAspect">
<properties>
<property name="wfge:instructions">
<type>d:text</type>
<mandatory>true</mandatory>
</property>
</properties>
</aspect>
</aspects>
</model>
<?xml version='1.0' encoding='UTF-8'?>
<!DOCTYPE beans PUBLIC '-//SPRING//DTD BEAN//EN' 'http://www.springframework.org/dtd/spring-beans.dtd'>
<beans>
<!– Registration of workflow models –>
<bean id="ge.workflowBootstrap" parent="workflowDeployer">
<property name="models">
<list>
<value>alfresco/extension/sopWorkflowModel.xml</value>
</list>
</property>
<property name="workflowDefinitions">
<list>
<props>
<prop key="engineId">activiti</prop>
<prop key="location">alfresco/extension/exercise11.bpmn20.xml</prop>
<prop key="mimetype">text/xml</prop>
<prop key="redeploy">true</prop>
</props>
</list>
</property>
</bean>
</beans>
<config evaluator="string-compare" condition="activiti$exercise11">
<forms>
<form>
<field-visibility>
<show id="bpm:workflowDescription" />
<show id="bpm:workflowDueDate" />
<show id="bpm:workflowPriority" />
<show id="bpm:assignee" />
<show id="packageItems" />
<show id="wfge:instructions" />
</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="items" appearance="title" label-id="workflow.set.items" />
<set id="other" appearance="title" label-id="workflow.set.other" />
<set id="assignee" appearance="title" label-id="workflow.set.assignee" />
<field id="bpm:assignee" label-id="workflow.field.assign_to" set="assignee" />
<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="wfge:instructions" label-id="Instructions for Reviewers" set="info">
<control template="/org/alfresco/components/form/controls/textarea.ftl" />
<control-param name="style">width: 95%</control-param>
</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="packageItems" set="items" />
</appearance>
</form>
</forms>
</config>
….
05-30-2014 01:20 AM
06-03-2014 04:25 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"
typeLanguage="http://www.w3.org/2001/XMLSchema"
expressionLanguage="http://www.w3.org/1999/XPath"
targetNamespace="http://www.activiti.org/test">
<process id="bc2process" name="BC2 Process" isExecutable="true">
<startEvent id="eventStart" name="Start" activiti:formKey="epeswf:startBC2ProcessTask"></startEvent>
<userTask id="bc2Task" name="BC2 Task" activiti:assignee="${bpm_assignee.properties.userName}" activiti:formKey="epeswf:bc2processTask"></userTask>
<endEvent id="eventEnd" name="End"></endEvent>
<sequenceFlow id="flow1" sourceRef="eventStart" targetRef="bc2Task"></sequenceFlow>
<sequenceFlow id="flow2" sourceRef="bc2Task" targetRef="eventEnd"></sequenceFlow>
</process>
</definitions>
<?xml version='1.0' encoding='UTF-8'?>
<!DOCTYPE beans PUBLIC '-//SPRING//DTD BEAN//EN' 'http://www.springframework.org/dtd/spring-beans.dtd'>
<beans>
<bean id="wf-bc2process" parent="workflowDeployer">
<property name="workflowDefinitions">
<list>
<props>
<prop key="engineId">activiti</prop>
<prop key="location">alfresco/extension/bc2process.bpmn</prop>
<prop key="mimetype">text/xml</prop>
<prop key="redeploy">true</prop>
</props>
</list>
</property>
<property name="models">
<list>
<value>alfresco/extension/bc2processModel.xml</value>
</list>
</property>
</bean>
</beans>
<?xml version="1.0" encoding="UTF-8"?>
<model name="epeswf:bc2processModel" xmlns="http://www.alfresco.org/model/dictionary/1.0">
<description>EPES BC2 Workflow Model</description>
<author>ACG</author>
<version>1.0</version>
<imports>
<!– Import Alfresco Dictionary Definitions –>
<import uri="http://www.alfresco.org/model/dictionary/1.0" prefix="d" />
<!– Import Alfresco Content Domain Model Definitions –>
<import uri="http://www.alfresco.org/model/content/1.0" prefix="cm" />
<import uri="http://www.alfresco.org/model/bpm/1.0" prefix="bpm"/>
<import uri="http://www.alfresco.org/model/workflow/1.0" prefix="wf"/>
</imports>
<namespaces>
<namespace uri="http://www.alfresco.org/model/training/2.0" prefix="epeswf"/>
</namespaces>
<types>
<type name="epeswf:startBC2ProcessTask">
<parent>bpm:startTask</parent>
<mandatory-aspects>
<aspect>bpm:assignee</aspect>
</mandatory-aspects>
</type>
<type name="epeswf:bc2processTask">
<parent>wf:activitiReviewTask</parent>
</type>
</types>
</model>
…
<config evaluator="string-compare" condition="activiti$collaborationProcess">
<forms>
<form>
<field-visibility>
<show id="bpm:workflowDescription" />
<show id="bpm:workflowDueDate" />
<show id="bpm:workflowPriority" />
<show id="bpm:assignee" />
<show id="packageItems" />
</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="items" appearance="title" label-id="workflow.set.items" />
<set id="other" appearance="title" label-id="workflow.set.other" />
<set id="assignee" appearance="title" label-id="workflow.set.assignee" />
<field id="bpm:assignee" label-id="workflow.field.assign_to" set="assignee" />
<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 set="info" id="bpm:assignee" label="Assignee:"/>
<field id="bpm:workflowPriority" label-id="workflow.field.priority" set="info">
<control template="/org/alfresco/components/form/controls/workflow/priority.ftl" />
</field>
<field id="packageItems" set="items" />
</appearance>
</form>
</forms>
</config>
…
06-02-2014 10:30 AM
06-02-2014 05:02 PM
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.