CLI Reference Guide

<context>Context for Unit Test Process Instance</context>
<artifactId>ID of the artifact executing the action</artifactId>
<timeout>3600</timeout>
<errorOnTimeout>false</errorOnTimeout>
</ProcessInstance>
Update a process instance
Details
URI
/processinstances/<process_instance_id>
Where <process_instance_id> is the process instance ID.
Method
PUT
Parameters
userIdentifier=<user_id>
Required; the user ID you want to use as credentials for this API call. See "Get
userIdentifier" on page 88 for the steps required to get the userIdentifier value.
view=<view_type>&scope=view
Optional; used to update process instance based on pre-defined views.
Possible values for view_type are propertyinfo and processinstancestate.
With processinstancestate, the process instance state, return code and
status can be changed.
<property_>action<_>=merge
Optional; use themerge option with the action meta tag query parameter to
update only a portion of the process instance. The following the use cases are
allowed:
l
With view=propertyinfo, specifying property_action_=merge will merge
the properties specified in the request body with the existing process
instance properties.
l
With view=processinstancestate, specifying action=merge will merge the
state information specified in the request body with the existing process
instance state.
Request
Body
ProcessInstance VO
Response
Body
Updated ProcessInstance VO
Returns
200 - Ok
401 - Not authorized
404 - Not found
500 - Server exception
Process instance state (processInstanceState) values:
HP Cloud Service Automation (4.00) Page 116 of 141
APIReference
Contents