Managing Custom Actions in ThingWorx Flow
Using Custom Actions in a Workflow
Your custom actions are available under one of the following locations:
• The Custom Actions group on the Custom tab in the Workflow Editor.
• A custom group name that you added while creating the custom action. This custom group is available on the Services tab in the Workflow Editor.
• The service on the Services tab in the Workflow Editor, if you copied or inherited from an existing action and chose to display the custom action under the same service.
For example, if you selected an action under Azure, then your custom action is available under Azure.
To use any custom action in a workflow, drag the action to the canvas. When you add a custom action to the workflow, a copy of the action is added to the workflow. If you edit or delete the custom action from the ThingWorx Flow dashboard, it does not affect any custom action that is added to the workflow.
Editing Custom Actions
When you edit a custom action, any workflows that are using the action are not updated automatically. If you want to use the edited custom action, add the action to the workflow. You can edit custom actions from the
ThingWorx Flow dashboard. For more information, see
Editing custom actions from the ThingWorx Flow dashboard.
|
When you edit a custom action, the this.localization.namespace attribute is replaced by the actual value in the code. If you want to add a new field to the action, you can either use the this.localization.namespace attribute or the actual value.
|
Deleting a Custom Action in ThingWorx Flow
When you delete a custom action, any workflows that are using the action continue to work. However, you cannot add that custom action to any other workflow. Use one of the following ways to delete custom actions:
From the ThingWorx Flow Dashboard
From the Workflow Editor
You can delete any custom actions that are available under the
Custom Actions group on the
Custom tab in the Workflow Editor. To delete a custom action, click
. When prompted for confirmation, click
DELETE to delete the custom action from
ThingWorx Flow.