Skip to main content
Nov 29, 2016 3:18 PM UTC
Question

Greetings. How can I send the creator of my workflow to call and send it to print. In a mail robot.

worklow.jpg

5 replies

Dec 5, 2016 7:09 PM UTC
  1. Create a String variable in your workflow (under properties in the top of your screenshot)
  2. Change your expression to assign the value to that String e.g.: myVar = ....
  3. In the notification robot under the Messge tab use the Variable> button to insert your variable e.g. {myVar}
vcarmonaAuthor
Dec 6, 2016 12:08 AM UTC

I created a String variable in my workflow called "User" (see the image below), now I want to get the name of the user, and assign it to the variable. I dont know how to do that in the expression. I really dont know the expression to get the user name, How would the line code be?


I need to do the same thing with the User group, I created a variable String called "group" and I want to get the user group name and assign it to the variable (group)

Dec 6, 2016 7:51 AM UTC

Hi,

With the variable name "user" then it should simply be:

          user = (wt.doc.WTDocument)primaryBusinessObject.getCreator();

You can use the Syntax button in your first screenshot above to check if you got a valid expression.

(I'm not able to syntax check what I wrote above - so it's just written from memory)

Sorry, I'm not sure which user group you mean, a user can be a member of several groups so you have to guide me on what Windchill group object you are referring to ...