Process Model REST API Services
This section lists and explains the services within the Process Model section of the Optimize REST Services API. This API provides definition information for processes, steps and stages.
Process Model List
This service returns a list of process models that are deployed to the Optimize Analytic Engine. Each process model includes process definition information.
The URL format is as follows:
http://${optimize
host}:${port}/services/rest/api/ProcessModels/Processes
Input Parameters
None.
Output Parameters
The following table describes the output parameters.
|
Process Models Result Example
<processModels>
<processModel>
<processModelId>MyModels/Order Fulfillment</processModelId>
<modelName>Order Fulfillment</modelName>
<processPath>MyModels</processPath>
<description>Process for order fulfillment</description>
<modelVersion>Production</modelVersion>
<modelType>BAM</modelType>
<createdBy>john doe</createdBy>
<deploymentVersion>1</deploymentVersion>
<deploymentTime>2014-08-05T15:33-06:00</deploymentTime>
<deploymentTimeAsJavaEpoch>1407274405067</deploymentTimeAsJavaEpoch>
<executionEnabled>false</executionEnabled>
<instanceLogging>false</instanceLogging>
<runningInstancesExist>false</runningInstancesExist>
<thresholdNumber>1</thresholdNumber>
<trackingEnabled>true</trackingEnabled>
</processModel>
</processModels>
Process Steps
This service returns a list of process steps for a specified process model. Each step includes process definition information.
The URL format is as follows:
http://${optimize
host}:${port}/services/rest/api/ProcessModels/Steps?processModelId=${processModelId}&version=${version}
Input Parameters
The following table describes the input parameters.
|
Output Parameters
The following table describes the output parameters.
|
Step Models Result Example
<stepModels>
<stepModel>
<stepId>S3</stepId>
<stepName>Order Receipt</stepName>
</stepModel>
<stepModel>
<stepId>S6</stepId>
<stepName>Find Customer Info</stepName>
</stepModel>
<stepModel>
<stepId>S14</stepId>
<stepName>Validate Credit</stepName>
</stepModel>
<stepModel>
<stepId>S20</stepId>
<stepName>Book Shipment</stepName>
</stepModel>
<stepModel>
<stepId>S17</stepId>
<stepName>Accept Order</stepName>
</StepModel>
<stepModel>
<stepId>S27</stepId>
<stepName>Validate Inventory</stepName>
</stepModel>
</stepModels>
Process Stages
This service returns a list of process stages for a specified process. Each stage includes definition information.
The URL format is as follows:
http://${optimize
host}:${port}/services/rest/api/ProcessModels/Stages?processModelId=${processModelId}&version=${version}
Input Parameters
The following table describes the input parameters.
|
Output Parameters
The following table describes the output parameters.
|
Stage Models Result Example
<stageModels>
<stageModel>
<stageId>1fa2ac94-169e-40a8-967a-7c07e98eb8e5</stageId>
<stageName>ValidateCreditComplete-EndOfTheProcess</stageName>
<stageDescription>Validate Credit Complete</stageDescription>
<cancelOnBreach>false</cancelOnBreach>
<stageCondition>LESS_THAN</stageCondition>
<conditionDuration>5000</conditionDuration>
<endMilestone>PROCESS.0.COMPLETED</endMilestone>
<endMilestoneStepName>End of process</endMilestoneStepName>
<startMilestone>STEP.S14.COMPLETED</startMilestone>
<startMilestoneStepName>Validate Credit (S14).Complete
</startMilestoneStepName>
</stageModel>
</stageModels>