Searching the Help
To search for information in the Help, type a word or phrase in the Search box. When you enter a group of words, OR is inferred. You can use Boolean operators to refine your search.
Results returned are case insensitive. However, results ranking takes case into account and assigns higher scores to case matches. Therefore, a search for "cats" followed by a search for "Cats" would return the same number of Help topics, but the order in which the topics are listed would be different.
Search for | Example | Results |
---|---|---|
A single word | cat
|
Topics that contain the word "cat". You will also find its grammatical variations, such as "cats". |
A phrase. You can specify that the search results contain a specific phrase. |
"cat food" (quotation marks) |
Topics that contain the literal phrase "cat food" and all its grammatical variations. Without the quotation marks, the query is equivalent to specifying an OR operator, which finds topics with one of the individual words instead of the phrase. |
Search for | Operator | Example |
---|---|---|
Two or more words in the same topic |
|
|
Either word in a topic |
|
|
Topics that do not contain a specific word or phrase |
|
|
Topics that contain one string and do not contain another | ^ (caret) |
cat ^ mouse
|
A combination of search types | ( ) parentheses |
|
Update a Process Instance
Details
URI | /processinstances/<process_instance_id> Where <process_instance_id> is the process instance ID. |
---|---|
Method | PUT |
Parameters |
|
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:
- INITIALIZED
- PENDING
- READY
- ACTIVE
- COMPLETED
- ERROR
- CANCELED
Process instance return code (processReturnCode) values:
- SUCCESS
- FAILURE
- RUNNING
- TIMEOUT
The request body sent in the API will be strictly validated for the following:
- Process Instance Id sent has to exist in CSA, otherwise the call will fail with appropriate error message.
- Process Instance state will be validated using the rule that the state cannot be changed to a transitional state while it is already in a terminal state. The terminal states are ‘COMPLETED, ERROR, CANCELED’ . So if the process instance state is already in any of the above states, this call will fail if it attempts to set the state to a different value than what it is currently. In addition, a process instance which is already in Active state cannot be reset back to Ready state using this call.
Examples
The following was sent to update propertyinfo of a process instance:
https://<host>:<port>/csa/rest/processinstances/90d9652b362d4ecd01362d4fb7be0f71?userIdentifier=90d9652b362d4ecd01362d4ef51e00a5&view=propertyinfo&scope=view&property_action_=merge
The following XML was sent in the request to update a property:
<ProcessInstance>>
<id>90d9652b362d4ecd01362d4fb7be0f71</id>
<property>
<name>Property Name</name>
<valueType>
<name>STRING</name>
</valueType>
<values>
<value>Hello World!</value>
</values>
</property>
</ProcessInstance>
The following was sent to update the process instance state:
https://<host>:<port>/csa/rest/processinstances/90d9652b362d4ecd01362d4fb7be0f71?userIdentifier=90d96588360da0c701360da0f1d5f483&scope=view&view=processinstancestate&action=merge
<ProcessInstance>>
<id>90d9652b3752ad4f013752ae38cb0065</id>
<processInstanceState>
<name>COMPLETED</name>
</processInstanceState>
</ProcessInstance>
The following was sent to update the process instance return code:
https://<host>:<port>/csa/rest/processinstances/90d9652b3752ad4f013752ae38cb0065?userIdentifier=90d96588360da0c701360da0f1d5f483&scope=view&view=processinstancestate&action=merge
<ProcessInstance>>
<id>90d9652b3752ad4f013752ae38cb0065</id>
<processReturnCode>
<name>SUCCESS</name>
</processReturnCode>
</ProcessInstance>
The following was sent to update the process instance state, status and return code:
https://<host>:<port>/csa/rest/processinstances/90d9652b3752ad4f013752ae38cb0065?userIdentifier=90d96588360da0c701360da0f1d5f483&scope=view&view=processinstancestate&action=merge
<ProcessInstance>>
<id90d9652b3752ad4f013752ae38cb0065</id>
<processInstanceState>
<name>COMPLETED</name>
</processInstanceState>
<processReturnCode>
<name>SUCCESS</name>
</processReturnCode>
<status>The Process Instance has successfully completed.</status>
</ProcessInstance>
We welcome your comments!
To open the configured email client on this computer, open an email window.
Otherwise, copy the information below to a web mail client, and send this email to clouddocs@hpe.com.
Help Topic ID:
Product:
Topic Title:
Feedback: