Apama 10.15.4 | 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>",Operation.STATUS_<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.
Note: 
The params dictionary cannot be manipulated to delete fragments in the Operation. However, the fragments in the Operation can be deleted using the Cumulocity IoT REST API, which can be invoked in EPL by using GenericRequest events. For more information, see Invoking other parts of the Cumulocity IoT REST API in this documentation and REST usage in the Cumulocity IoT OpenAPI documentation.