block level tracing to a file

Hi all,

I would like to output the block level trace in a form to to a file(by default its console)...WHERE DO I SPECIFY THE PATH TO THE FILE? I have checked waveset.properties and SystemConfiguration files but found that we can only specify the trace of an entire workflow..

"Block trace to a file" is what i want..

Yash

[346 byte] By [yash@IDMa] at [2007-11-27 3:44:53]
# 1

From the FAQ on Sharespace

SUBJECT:

How to dynamically enable trace for a single workflow.

QUESTION:

If you've ever enabled workflow trace in the Waveset.properties file, you know that

it can generate a lot of output. Is it possible to just enable tracing for a single

workflow?

ANSWER:

There are three ways to turn on workflow trace:

- Waveset.properties file

- in the WFProcess definition

- with a workflow variable

To enable trace unconditionally for a particular process, you will need to edit the

XML of the TaskDefinition object.

Locate the <WFProcess> element and add this attribute:

trace='console'

to trace to the console or:

trace='workflowTrace.txt'

to trace to a file. You can have more control over when tracing happens by using a workflow variable. The engine will look for a top-level workflow variable named "trace" whose value may be set as shown above.

For example:

<Variable name='trace'>

<cond>

<eq>

<ref>accountId</ref>

<s>adminA</s>

</eq>

<s>workflowTrace.txt</s>

</cond>

</Variable>

This turns trace on only if the workflow is operating on a user named "adminA".

You could also set this in a form field if you want to control trace interactively.

Mark.Nienabera at 2007-7-12 8:48:34 > top of Java-index,Web & Directory Servers,Directory Servers...
# 2

Hi,

Thanks for the info. You have specified workflowTrace.txt but how do u specify the path of the file? I have tried using trace='c:\workflowTrace.txt' but it is writing to the console.

Is there any means of writing the form block trace(code embedded in block trace='true') to a file(instead of the entire workflow)?

Yash

yash@IDMa at 2007-7-12 8:48:34 > top of Java-index,Web & Directory Servers,Directory Servers...