A business flow is executed as an ordered sequence of flow steps. Custom steps can be added only after data is loaded from the source application or before being updated in a destination application.
Note: Custom steps can only be defined for a specific provider, the role of the provider in a business flow, and the type of business flow. For example you can add a custom step to the P6 provider which can be used by any project data business flow where P6 is the source application.
To add a custom step:
- Sign in to Primavera Gateway as an administrator or developer.
- In the sidebar, select Configuration.
- Select .the Custom Steps tab.
- Select the Add... button.
- In the Custom Step wizard, enter the following information:
- In the Name field, enter a name for the custom step.
- Select a provider from the Provider list.
- Select the role of the provider in any business flow from the Flow Side list. Choices include:
- Source: The provider is a source application in a business flow.
- Destination: The provider is a destination application in a business flow.
- Select the type of flow that the custom step is to be associated from the Flow Type list. Choices include:
- Master Data: The custom step is associated with a master data business flow.
- Project Data: The custom step is associated with a project data business flow.
- In the Sequence Number field, enter or select a number to specify the location of the custom step in the flow step sequence of the data flow.
If the provider is a source application, you can add a custom step in the Sequence Number range 11 - 19 only.
If the provider is a destination application, you can add a custom step in the Sequence Number range 61 - 79 only.
Note: Do not add custom steps after Sequence Number 80 associated with the last flow step, Update Destination, as it will not be used by any business flow.
- Select the Enable check box to activate the custom step in the master data or project data flow type of the provider.
- Select Save.
- In the Formula section, enter code and validate the custom step using Gateway scripting language.
For more details, see Gateway Scripting Guide.
- Select Save.