04-12-2011 10:17 AM
<?xml version="1.0" encoding="UTF-8"?>
<process-definition xmlns="urn:jbpm.org:jpdl-3.2" name="bwf:basicWorkFlowModel">
<description>
Basic Approval Flow
</description>
<swimlane name="initiator"></swimlane>
<swimlane name="assignee">
<assignment actor-id="#{bpm_assignee}"></assignment>
</swimlane>
<start-state name="Start">
<task name="bwf:startApprovalTask" swimlane="initiator">
<description>
approval start
</description>
</task>
<transition to="Approval" name="to_approve"></transition>
</start-state>
<decision name="Decision">
<handler class="com.sample.action.ApprovalHandler"></handler>
<transition to="Accepted" name="Yes"></transition>
<transition to="Rejected" name="No"></transition>
</decision>
<node name="Accepted">
<action name="AcceptedAction" class="com.sample.action.MessageActionHandler">
<message>
Accepted
</message>
</action>
<transition to="End" name="to_end_accepted"></transition>
</node>
<node name="Rejected">
<action name="RejectedAction" class="com.sample.action.MessageActionHandler">
<message>
Rejected
</message>
</action>
<transition to="End" name="to_end_rejected"></transition>
</node>
<task-node name="Approval">
<task name="bwf:approvalTask" swimlane="assignee"></task>
<transition to="Decision" name="to_decide"></transition>
</task-node>
<end-state name="End"></end-state>
</process-definition>
<?xml version="1.0" encoding='UTF-8'?>
<model name="bwf:basicWorkFlowModel" 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="my.basic.model" prefix="bwf"/>
</namespaces>
<types>
<type name="bwf:startApprovalTask">
<parent>bpm:startTask</parent>
<properties>
<property name="bwf:notify">
<type>d:boolean</type>
<default>false</default>
</property>
</properties>
<mandatory-aspects>
<aspect>bpm:assignee</aspect>
</mandatory-aspects>
</type>
<type name="bwf:approvalTask">
<parent>bpm:workflowTask</parent>
<properties>
<property name="bwf:decision">
<type>d:boolean</type>
<default>false</default>
</property>
</properties>
</type>
</types>
</model>
04-18-2011 02:00 AM
04-19-2011 07:52 AM
04-27-2011 04:23 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.