Skip to main content
4-Participant
November 29, 2016
Question

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

  • November 29, 2016
  • 1 reply
  • 3020 views

worklow.jpg

1 reply

1-Visitor
December 5, 2016
  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}
vcarmona4-ParticipantAuthor
4-Participant
December 6, 2016

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)

1-Visitor
December 6, 2016

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 ...