Get Process Definition Content
This operation returns a BPMN file for the specified process type.
Request
Operation Endpoint:
GET {tenantId}/processDefinitions/{processType}
Parameter | Required | Description | |
---|---|---|---|
Headers | Authorization |
Yes | Access Token in format "Bearer
(see details in
Authentication API). |
EnvironmentURL |
Yes | Reltio Environment URL. |
Response
Response Structure:
error
: returned if an error is encountered, contains details of the issue:errorCode
: 5-digit error codeerrorMessage
: error messageerrorData
: details of the error:exception
: exception messagestack
: stack trace
innerError
: details of the error from Reltio API:errorMessage
: Reltio API error messageerrorCode
: Reltio API error codeinnerErrorData
: Reltio API inner error data
warning
: returned if the operation is completed with some minor issuesstatus
: result of the operation; possible values areOK
orfailed
Sample Response bpmn20.dita File:
<?xml version="1.0" encoding="UTF-8"?>
<definitions xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 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" xmlns="http://www.omg.org/spec/BPMN/20100524/MODEL" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:activiti="http://activiti.org/bpmn" targetNamespace="http://www.activiti.org/test">
<process id="recommendForDelete" name="Recommend for Delete" isExecutable="true">
<startEvent id="startevent1" name="Start" />
<userTask id="deleteReview" name="Delete Review" activiti:dueDate="P2D" activiti:candidateGroups="ROLE_REVIEWER">
<extensionElements>
<activiti:formProperty id="decision" name="Decision" type="enum" default="Delete" required="true">
<activiti:value id="Delete" name="Delete" />
<activiti:value id="Cancel" name="Cancel" />
</activiti:formProperty>
<activiti:formProperty id="accessTypes" name="AccessTypes" type="string" default="DELETE,READ" writable="false" />
<activiti:formProperty id="validator" name="Validator" type="string" default="com.company.workflow.delete.DeleteReviewValidator" writable="false" />
<activiti:formProperty id="notificationOnAssignmentEnabled" name="NotificationOnAssignmentEnabled" type="boolean" default="true" writable="false" />
<activiti:formProperty id="notificationOnCompletionEnabled" name="NotificationOnCompletionEnabled" type="boolean" default="true" writable="false" />
<activiti:taskListener event="create" class="com.reltio.workflow.activiti.service.TaskStartEventListener" />
<activiti:taskListener event="assignment" class="com.reltio.workflow.activiti.service.TaskAssignmentEventListener" />
</extensionElements>
</userTask>
<sequenceFlow id="flow1" sourceRef="startevent1" targetRef="deleteReview" />
<serviceTask id="DeleteService" name="Delete Service" activiti:class="com.reltio.workflow.activiti.service.Delete" />
<sequenceFlow id="Delete" name="Delete" sourceRef="exclusivegateway1" targetRef="DeleteService">
<conditionExpression xsi:type="tFormalExpression">
<![CDATA[${decision=='Delete'}]]>
</conditionExpression>
</sequenceFlow>
<exclusiveGateway id="exclusivegateway1" name="Exclusive Gateway" />
<sequenceFlow id="flow2" sourceRef="deleteReview" targetRef="exclusivegateway1" />
<endEvent id="endevent1" name="End" />
<sequenceFlow id="flow3" sourceRef="DeleteService" targetRef="endevent1" />
<sequenceFlow id="Cancel" name="Cancel" sourceRef="exclusivegateway1" targetRef="endevent1">
<conditionExpression xsi:type="tFormalExpression">
<![CDATA[${decision=='Cancel'}]]>
</conditionExpression>
</sequenceFlow>
<dataObject id="manualStart" name="manualStart">
<extensionElements>
<activiti:value>true</activiti:value>
</extensionElements>
</dataObject>
<dataObject id="deleted" name="deleted">
<extensionElements>
<activiti:value>false</activiti:value>
</extensionElements>
</dataObject>
</process>
<bpmndi:BPMNDiagram id="BPMNDiagram_recommendForDelete">
<bpmndi:BPMNPlane id="BPMNPlane_recommendForDelete" bpmnElement="recommendForDelete">
<bpmndi:BPMNShape id="BPMNShape_startevent1" bpmnElement="startevent1">
<omgdc:Bounds x="30" y="233" width="35" height="35" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="BPMNShape_deleteReview" bpmnElement="deleteReview">
<omgdc:Bounds x="130" y="220" width="105" height="61" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="BPMNShape_DeleteService" bpmnElement="DeleteService">
<omgdc:Bounds x="390" y="223" width="105" height="55" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="BPMNShape_exclusivegateway1" bpmnElement="exclusivegateway1" isMarkerVisible="true">
<omgdc:Bounds x="283" y="230" width="40" height="40" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="BPMNShape_endevent1" bpmnElement="endevent1">
<omgdc:Bounds x="540" y="233" width="35" height="35" />
</bpmndi:BPMNShape>
<bpmndi:BPMNEdge id="BPMNEdge_flow1" bpmnElement="flow1">
<omgdi:waypoint xsi:type="omgdc:Point" x="65" y="250" />
<omgdi:waypoint xsi:type="omgdc:Point" x="130" y="250" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="BPMNEdge_Delete" bpmnElement="Delete">
<omgdi:waypoint xsi:type="omgdc:Point" x="323" y="250" />
<omgdi:waypoint xsi:type="omgdc:Point" x="390" y="250" />
<bpmndi:BPMNLabel>
<omgdc:Bounds x="333" y="250" width="30" height="14" />
</bpmndi:BPMNLabel>
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="BPMNEdge_flow2" bpmnElement="flow2">
<omgdi:waypoint xsi:type="omgdc:Point" x="235" y="250" />
<omgdi:waypoint xsi:type="omgdc:Point" x="283" y="250" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="BPMNEdge_flow3" bpmnElement="flow3">
<omgdi:waypoint xsi:type="omgdc:Point" x="495" y="250" />
<omgdi:waypoint xsi:type="omgdc:Point" x="540" y="250" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="BPMNEdge_Cancel" bpmnElement="Cancel">
<omgdi:waypoint xsi:type="omgdc:Point" x="303" y="270" />
<omgdi:waypoint xsi:type="omgdc:Point" x="303" y="338" />
<omgdi:waypoint xsi:type="omgdc:Point" x="557" y="338" />
<omgdi:waypoint xsi:type="omgdc:Point" x="557" y="268" />
<bpmndi:BPMNLabel>
<omgdc:Bounds x="393" y="319" width="33" height="14" />
</bpmndi:BPMNLabel>
</bpmndi:BPMNEdge>
</bpmndi:BPMNPlane>
</bpmndi:BPMNDiagram>
</definitions>