camunda-modeler
Version:
Camunda Modeler for BPMN, DMN and CMMN, based on bpmn.io
164 lines (163 loc) • 8.08 kB
text/xml
<definitions xmlns="http://www.omg.org/spec/BPMN/20100524/MODEL" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:camunda="http://camunda.org/schema/1.0/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="myProcess" name="My process" isExecutable="true">
<startEvent id="startevent1" name="Start"></startEvent>
<serviceTask id="servicetask1" name="Upload Pictures" camunda:class="org.crowdcomputer.impl.MarketPlaceTask" camunda:extensionId="org.crowdcomputer.ui.task.MarketPlaceTask">
<extensionElements>
<camunda:field name="description">
<camunda:string>upload pictures</camunda:string>
</camunda:field>
<camunda:field name="deadline">
<camunda:string>0y 0mo 1w 0d 0h 0m 0s</camunda:string>
</camunda:field>
<camunda:field name="number_of_instances">
<camunda:string>2</camunda:string>
</camunda:field>
<camunda:field name="page_url">
<camunda:string>http://electrocrowd.com/upload&bucket=7</camunda:string>
</camunda:field>
<camunda:field name="reward">
<camunda:string>1.0</camunda:string>
</camunda:field>
<camunda:field name="platform">
<camunda:string>CCM</camunda:string>
</camunda:field>
<camunda:field name="input">
<camunda:string>data</camunda:string>
</camunda:field>
<camunda:field name="output">
<camunda:string>data</camunda:string>
</camunda:field>
</extensionElements>
</serviceTask>
<sequenceFlow id="flow1" sourceRef="startevent1" targetRef="servicetask1"></sequenceFlow>
<serviceTask id="servicetask2" name="Split Data Task" camunda:class="org.crowdcomputer.impl.SplitData" camunda:extensionId="org.crowdcomputer.ui.SplitData">
<extensionElements>
<camunda:field name="operation">
<camunda:string>SplitN</camunda:string>
</camunda:field>
<camunda:field name="n">
<camunda:string>1</camunda:string>
</camunda:field>
<camunda:field name="m">
<camunda:string>0</camunda:string>
</camunda:field>
<camunda:field name="input">
<camunda:string>data</camunda:string>
</camunda:field>
<camunda:field name="output">
<camunda:string>data</camunda:string>
</camunda:field>
</extensionElements>
</serviceTask>
<sequenceFlow id="flow2" sourceRef="servicetask1" targetRef="servicetask2"></sequenceFlow>
<exclusiveGateway id="exclusivegateway1" name="Exclusive Gateway"></exclusiveGateway>
<sequenceFlow id="flow3" sourceRef="servicetask2" targetRef="exclusivegateway1"></sequenceFlow>
<serviceTask id="servicetask3" name="Tag pictures" camunda:class="org.crowdcomputer.impl.MarketPlaceTask" camunda:extensionId="org.crowdcomputer.ui.task.MarketPlaceTask">
<extensionElements>
<camunda:field name="description">
<camunda:string>tag picutres</camunda:string>
</camunda:field>
<camunda:field name="deadline">
<camunda:string>0y 0mo 1w 0d 0h 0m 0s</camunda:string>
</camunda:field>
<camunda:field name="number_of_instances">
<camunda:string>1</camunda:string>
</camunda:field>
<camunda:field name="page_url">
<camunda:string>http://electrocrowd.com/annotation</camunda:string>
</camunda:field>
<camunda:field name="reward">
<camunda:string>0.5</camunda:string>
</camunda:field>
<camunda:field name="platform">
<camunda:string>CCM</camunda:string>
</camunda:field>
<camunda:field name="input">
<camunda:string>data</camunda:string>
</camunda:field>
<camunda:field name="output">
<camunda:string>data1</camunda:string>
</camunda:field>
</extensionElements>
</serviceTask>
<serviceTask id="servicetask4" name="categorize pictures" camunda:class="org.crowdcomputer.impl.MarketPlaceTask" camunda:extensionId="org.crowdcomputer.ui.task.MarketPlaceTask">
<extensionElements>
<camunda:field name="description">
<camunda:string>categorize pictures</camunda:string>
</camunda:field>
<camunda:field name="deadline">
<camunda:string>0y 0mo 1w 0d 0h 0m 0s</camunda:string>
</camunda:field>
<camunda:field name="number_of_instances">
<camunda:string>1</camunda:string>
</camunda:field>
<camunda:field name="page_url">
<camunda:string>http://electrocrowd.com/category</camunda:string>
</camunda:field>
<camunda:field name="reward">
<camunda:string>0.5</camunda:string>
</camunda:field>
<camunda:field name="platform">
<camunda:string>CCM</camunda:string>
</camunda:field>
<camunda:field name="input">
<camunda:string>data</camunda:string>
</camunda:field>
<camunda:field name="output">
<camunda:string>data2</camunda:string>
</camunda:field>
</extensionElements>
</serviceTask>
<exclusiveGateway id="exclusivegateway2" name="Exclusive Gateway"></exclusiveGateway>
<serviceTask id="servicetask5" name="Summary" camunda:class="org.crowdcomputer.impl.MarketPlaceTask" camunda:extensionId="org.crowdcomputer.ui.task.MarketPlaceTask">
<extensionElements>
<camunda:field name="description">
<camunda:string>summary</camunda:string>
</camunda:field>
<camunda:field name="deadline">
<camunda:string>0y 0mo 0w 0d 0h 0m 0s</camunda:string>
</camunda:field>
<camunda:field name="number_of_instances">
<camunda:string>1</camunda:string>
</camunda:field>
<camunda:field name="page_url">
<camunda:string>http://electrocrowd.com/validate</camunda:string>
</camunda:field>
<camunda:field name="reward">
<camunda:string>0</camunda:string>
</camunda:field>
<camunda:field name="platform">
<camunda:string>CCM</camunda:string>
</camunda:field>
<camunda:field name="input">
<camunda:string>data</camunda:string>
</camunda:field>
<camunda:field name="output">
<camunda:string>data</camunda:string>
</camunda:field>
</extensionElements>
</serviceTask>
<endEvent id="endevent1" name="End"></endEvent>
<sequenceFlow id="flow4" sourceRef="servicetask5" targetRef="endevent1"></sequenceFlow>
<sequenceFlow id="flow6" sourceRef="servicetask3" targetRef="exclusivegateway2"></sequenceFlow>
<sequenceFlow id="flow7" sourceRef="exclusivegateway1" targetRef="servicetask3"></sequenceFlow>
<sequenceFlow id="flow8" sourceRef="exclusivegateway1" targetRef="servicetask4"></sequenceFlow>
<sequenceFlow id="flow9" sourceRef="servicetask4" targetRef="exclusivegateway2"></sequenceFlow>
<sequenceFlow id="flow10" sourceRef="exclusivegateway2" targetRef="servicetask7"></sequenceFlow>
<serviceTask id="servicetask7" name="Join Object Task" camunda:class="org.crowdcomputer.impl.JoinObject" camunda:extensionId="org.crowdcomputer.ui.JoinObject">
<extensionElements>
<camunda:field name="field">
<camunda:string>resource_id</camunda:string>
</camunda:field>
<camunda:field name="input">
<camunda:string>data1,data2</camunda:string>
</camunda:field>
<camunda:field name="output">
<camunda:string>id</camunda:string>
</camunda:field>
</extensionElements>
</serviceTask>
<sequenceFlow id="flow11" sourceRef="servicetask7" targetRef="servicetask5"></sequenceFlow>
</process>
</definitions>