Default value of variables from code
Tue, 07/13/2010 - 03:44
Hello,
I need to access the defalut value of a variable that was set during the design of the workflow in editor using the resource gateway client / resoruce manager class. There are methods available for this purpose like getAttributeTable()in WorkItemRecord class. But this always returns a null hashtable. I am sure there must be some way to access the variables from the resource gateway client.
Could anyone give some insight about this problem.
Thanks,
Nag





Hi Nag,
The method you are after is WorkQueueGatewayClient.getWorkItemOutputOnlyParameters(String itemid, String sessionhandle).
Only variables with 'output-only' usage type can contain a default value. This method will return all the meta-information for each output-only variable, including its default value (if any).
Cheers, Michael.