Apama 10.15.0 | Connecting Apama Applications to External Components | Standard Connectivity Plug-ins | The Cumulocity IoT Transport Connectivity Plug-in | Using operations | Updating an existing operation
 
Updating an existing operation
You can update the status field.
send com.apama.cumulocity.Operation("<OPERATION_ID>","<SOURCE>","<STATUS>",
{"c8y_Message":<any> {<any>"text":<any>"Updated Cumulocity device"}} )
to com.apama.cumulocity.Operation.SEND_CHANNEL;
Where
*<OPERATION_ID> is the identifier of the previously created operation. The presence of <OPERATION_ID> indicates that the request is for updating an existing operation.
*<SOURCE> is the source of the operation (same as the ManagedObject identifier).
*<STATUS> is the status of the operation. This can be PENDING, EXECUTING, SUCCESSFUL or FAILED.