User action node pre exec/exec html

 10 Replies
 0 Subscribed to this topic
 52 Subscribed to this forum
Sort:
Author
Messages
khart
Advanced Member Send Private Message
Posts: 25
Advanced Member

  Does anyone have an example of a basic html file to put in the user action node for pre exec or exec?  Right now all that shows is work unit # and two other fields so I need to add more info to that screen which opens up in an inbasket.  I found the exec folder under the bpm folder on our server so is that what I should use to add more detail to the inbasket?

David Williams
Veteran Member Send Private Message
Posts: 1127
Veteran Member
What type of flow are you designing? The htm file is different for different approval needs.
If you have Design Studio you can design a Portal Page and enter the XML filename instead of an HTML filename.
David Williams
khart
Advanced Member Send Private Message
Posts: 25
Advanced Member
Salary change type flow is what i'm starting with now.
David Williams
Veteran Member Send Private Message
Posts: 1127
Veteran Member

This might work for you. Take off the .txt extension.

Attachments
David Williams
khart
Advanced Member Send Private Message
Posts: 25
Advanced Member

Do I put this in the exec folder and also reference it in the user action node?

David Williams
Veteran Member Send Private Message
Posts: 1127
Veteran Member
You will more than likely have to deploy the HTML document through WebSphere (LSF 9). You would add the filename in the Display Exec field on the UserAction node.
David Williams
khart
Advanced Member Send Private Message
Posts: 25
Advanced Member
Ok i'll try that also, you mentioned Design Studio above. How do I reference the variables in the Design Studio page? law_web_usr.company & law_web_usr.employee arent working for me since I need to reference & are the working variables in my flow now.
David Williams
Veteran Member Send Private Message
Posts: 1127
Veteran Member

Here's an example. If you call the Portal Page from your UserAction node then you need to assign the ProcessFlow Service variable values to local variables.

var COMPANY = page.dataSource["COMPANY"];
var REQ-LOCATION = page.dataSource["REQ-LOCATION"];
var REQ-NUMBER = page.dataSource["REQ-NUMBER"];

If your Portal Page is using a DME/Query tool to display a Requisition to be approved then you pass these to the DME call.

Attachments
David Williams
khart
Advanced Member Send Private Message
Posts: 25
Advanced Member
Do you mean i apply that example to the script side of my DS page? Or am I referencing variables in the menu.do?
David Williams
Veteran Member Send Private Message
Posts: 1127
Veteran Member
That script goes into the Design Studio Portal Page.
David Williams
khart
Advanced Member Send Private Message
Posts: 25
Advanced Member
Perhaps i am being a bit thick, i'm able to pass variables into my dme query but how am I passing the process flow variables into the xml that i'm adding on the User Action node?