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

Community Tip - Did you get called away in the middle of writing a post? Don't worry you can find your unfinished post later in the Drafts section of your profile page. X

Translate the entire conversation x

Add data utility to workflow variable

SK_12337814
8-Gravel

Add data utility to workflow variable

We are working on a task where it should have an input attribute with a suggestion box on a workflow task item.

I have created the data utility for the suggestion box. I need clue how to map it with my workflow variable(it is not straight forward as i do for type and attribute)

Kindly guide me

ACCEPTED SOLUTION

Accepted Solutions

We accomplished this with a custom JSP template for the workflow task page. In this example, I was using a drop down for a WTUser that I wanted a custom limit on what users were selectable. Variable was called "EC_Creator".

<jca:describePropertyPanel var="ecCreatorPanelDescriptor" >

    <jca:describeProperty id="EC_Creator" dataUtilityId="goodrichPrincipalSelector" />

</jca:describePropertyPanel>

You are able to add in the call out for the ID of the data utility.

<tr>
        <td align="right" valign="top" nowrap><FONT class=tabledatafont>
            <tags:taskPanelLabel propertyModel="${ecCreatorPropertyModel}" attrs="EC_Creator"/>
        </td>
    </tr>

Then later on in the template, you can call out its rendering.

View solution in original post

6 REPLIES 6
HelesicPetr
22-Sapphire II
(To:SK_12337814)

Hello @SK_12337814 

Here is an example how to use dropdown list in the workflow task input.

CS36017 - How to create a drop down list in a workflow instance task detail page of Windchill

Unfortunately, when I tried this example, I realized that the standard DataUtility is not supported in the task input page. 

 

PS> you can study what following DU does and get idea how to implement own one.

com.ptc.windchill.enterprise.workitem.dataUtilities.CustomVariablesDataUtility

mentioned DU is used to display Variables from workflow on the Task page.

 

PetrH

We accomplished this with a custom JSP template for the workflow task page. In this example, I was using a drop down for a WTUser that I wanted a custom limit on what users were selectable. Variable was called "EC_Creator".

<jca:describePropertyPanel var="ecCreatorPanelDescriptor" >

    <jca:describeProperty id="EC_Creator" dataUtilityId="goodrichPrincipalSelector" />

</jca:describePropertyPanel>

You are able to add in the call out for the ID of the data utility.

<tr>
        <td align="right" valign="top" nowrap><FONT class=tabledatafont>
            <tags:taskPanelLabel propertyModel="${ecCreatorPropertyModel}" attrs="EC_Creator"/>
        </td>
    </tr>

Then later on in the template, you can call out its rendering.

HelesicPetr
22-Sapphire II
(To:avillanueva)

Hi @avillanueva 

I was thinking about the jsp and javascript solution 😄

PetrH

thanks

buit should i use custom task form template here?

and how to likn with my workflow variable>?

This section of the documentation show how:

https://support.ptc.com/help/wnc/r12.0.2.0/en/index.html#page/Windchill_Help_Center%2FWCCG_BusLogicCust_WorkflowAdmin_CustWorkflowTaskPages_Rendering.html%23

Yes, I used a custom JSP task page. when you describe the workflow variable, you can add a data utility ID. you must have this data utility registered in the site.xconf and class created.

 

Hi @SK_12337814,

I wanted to see if you got the help you needed.

If so, please mark the appropriate reply as the Accepted Solution or please feel free to detail in a reply what has helped you and mark it as the Accepted Solution. It will help other members who may have the same question.

Of course, if you have more to share on your issue, please pursue the conversation.

Thanks,


Catalina
PTC Community Moderator
PTC
Announcements

Top Tags