Instantiating a workflow

It is not sufficient to create a workflow. Generally, you want to do something moderately useful with it. To perform work, you must instantiate your workflow and call it somehow.

Suppose, for example, that you create a new workflow and call it, for lack of a better name, HelloWorld1. You can then instantiate your workflow using the following Gosu:

var workflow = new HelloWorld1()
workflow.start()

Starting a workflow

There are multiple workflow start methods. The following list describes them.

start()

Starts the workflow.

start(version)

Starts the workflow with the specified process version.

startAsynchronously()

Starts the workflow asynchronously.

startAsynchronously(version)

Starts the workflow with the specified process version asynchronously.

See also

Logging workflow actions

There are several different Gosu statements that you can use to view workflow-related information.

gw.api.util.Logger.logInfo

Statement written to the application server log

Workflow.log

Statements viewable in the PolicyCenterWorkflow console

See Also