Skip to Content

Default value of variables from code

1 reply [Last post]
mr26
User offline. Last seen 8 weeks 22 hours ago. Offline
Joined: 04/26/2010
Groups: None

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

 

michael
User offline. Last seen 4 days 10 hours ago. Offline
Joined: 09/29/2009
Groups: None
re: default values

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.