Test Compound Workflow
This example demonstrates how to compose a hierarchical workflow that checks whether the TestEmailWorkflow receives the proper parameters and generates a token with the Mail parameter defined.
TestCompoundWorkflow is a simple workflow that sequentially connects the TestWorkflow (named Logger), TestEmailWorkflow (named Email) and Token Value Checker (named TokenValueCheckerWkItem1) work item components. All the connections are made via the OK outputs.
The workflow is shown in Figure 2.
![]()
To insert a bean that is not in the palette, click Choose bean... on the palette and provide the class name. This example includes the beans from the samples package: TestWorkflow and the TestEmailWorkflow.
The component workflows do not have any properties to configure. The only component to configure is the TokenValueCheckerWkitem1. Its TokenAttributeValuePair property has the value Mail. If the parameter Mail is not part of the token after the execution of the Email component, a not proceed token is sent to the workflow engine, indicating that the workflow has failed to execute its task. In this case, the directory is not updated and the SDX component that triggered this workflow receives a notification.
The parameter list specifies two input parameters, Name and Address, and one output, Mail.