6.7 Debugging a Workflow

When testing a workflow, you might need to see the values of the variables you’re using in the flow. Some options include:

6.7.1 Using the Log Activity

Use the Log activity to display messages containing the variables you need to look at. After you’ve configured the Log activity, you can then see the messages in the console. In the Log activity, you can use scripting expressions in the Message property to retrieve the values you need. For example, you might use this expression to log a message containing the value of a variable defined on the flowdata object:


For details on using the Log activity, see Section 7.3, Log Activity.

6.7.2 Using the Workflow Database

Look in the workflow database to see how the data associated with the flowdata object changes as the workflow progresses from one activity to the next. To see this data, you can look at the afdocument table.

6.7.3 Changing Log Levels

During the debugging process, you can change the log levels associated with the workflow system (com.novell.soa.af.impl), the provisioning requests component of the User Application (com.novell.srpr.apwa), and the evaluation of server side scripts (com.novell.soa.script). This approach might generate more information than you need, but sometimes it can be helpful. To change logging levels, go to the Logging page within the Administration tab of the User Application.