View, clone, move, and delete functions in DataWorks.
Prerequisites
A DataWorks workspace in standard mode or basic mode
At least one function created within a business process on the Service Development page
View function details
Open a function's configuration tab. The right-side navigation pane provides the following tabs:
| Tab | Description |
|---|---|
| Properties | View basic information about the function, including the function ID and creation time. The function ID uniquely identifies the function and can be used to search for it. |
| Association Relationship | View the relationships between the function and published or unpublished APIs. |
| Version | View details about each version of the function. |
| Resource Group | View or change the resource group assigned to the function. |
Check the association relationships before you delete or modify a function to identify affected APIs.
Clone a function
On the Service Development page, expand the business process that contains the function, and click Function.
Right-click the function name, and select Clone from the shortcut menu.
In the Clone Function dialog box, configure the following parameters.
Parameter Description Function Name The name of the cloned function. The name must be 4 to 50 characters in length and can contain letters, digits, and underscores (_). It must start with a letter. Destination Folder The folder where the cloned function is stored. Click OK.
Move a function
On the Service Development page, expand the business process that contains the function, and click Function.
Right-click the function name, and select Mobile from the shortcut menu.
In the Modify file path dialog box, select a value for Destination Folder.
Click OK.
Delete a function
On the Service Development page, expand the business process that contains the function, and click Function.
Right-click the function name, and select Delete from the shortcut menu.
In the Delete Function message, click OK.
If the function is referenced by APIs, the deletion fails. Remove the function from the filters of the APIs before you delete the function.