cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Need to share some code when posting a question or reply? Make sure to use the "Insert code sample" menu option. Learn more! X

Reporting on Workflow Variables

dwilliams
6-Contributor

Reporting on Workflow Variables

Gurus,
I am looking to report on workflow variables against their respective process. Can anyone explain where the variables are stored and how they are joined to a process?

Thank you in advance for your guidance,
Dax Williams
Business Administrator, Windchill
Lifetime Products, Inc.
-<">mailto:->

[cid:image001.jpg@01C9B782.6A695810]

3 REPLIES 3

hi,

check ProcessData in the windchill api docs.

martin

ps. newer ext.tools contains jsp pages that will search for values
within the process data or even let you edit the variables 😉

Dax Williams wrote:
>
> Gurus,
>
> I am looking to report on workflow variables against their
> respective process. Can anyone explain where the variables are stored
> and how they are joined to a process?
>
>
>
> Thank you in advance for your guidance,
>
> Dax Williams
>
> Business Administrator, Windchill
>
> Lifetime Products, Inc.
>
> - <">mailto:->
>
>
>
> Lifetime_Logo_BlkWhite_Sans_email sig
>
>
>
>
>
> -----End Original Message-----


The are in the wfprocess object there is a method called getContext() which returns a ProcessData object and there is many methods of which one is Object getVariable(String varname);

Object someobj = ((WfProcess)self.getObject()).getContext().getVariable("myvariable");

// you know the type of variable it is but I always like to check...

if (someobj instanceof ?)
{
// cast it or do something
}

dwilliams
6-Contributor
(To:dwilliams)

Thanks to all who replied. I was hoping to use the report manager to gather these variables and their values. Based on your responses, it appears that the variables are stored as a WfVariable type, which is not available through report manager. It appears the only way to gather these variables is to use the getVariableList method from the ProcessData class. It is too bad that the report manager is limited on what you can and cannot report on.

Dax Williams
Business Administrator, Windchill
Lifetime Products, Inc.
Top Tags