Methods that create a language-specific subflow

You can create a child workflow, or subflow, in Gosu by using the following methods on Workflow. Each method handles the language of the subflow differently.

Method

Description

createSubFlow

Creates a child subflow synchronously. PolicyCenter starts the subflow immediately upon method invocation. The new subflow automatically uses the default application language, not the language of the parent workflow. Thus, if you set the language of the parent workflow to be different from the default application language, the subflow does not inherit that language.

createSubFlowAsynchronously

Creates a child subflow that PolicyCenter starts only after executing all code in the Gosu initialization block. The subflow uses the default application language, not the language set for the workflow itself.

Because PolicyCenter executes all the Gosu code in the block before starting the subflow, it is possible to set the language of the subflow before the workflow starts.

instantiateSubFlow

Creates a child subflow, but does not start it. You can modify the subflow that the method returns before you start the subflow.