You are viewing limited content. For full access, please sign in.

Question

Question

Personal stamp with workflow script

asked on April 7, 2015

Greetings All,

 

I am currently working on a workflow script that creates a personal stamp and is initiated by a business process.  The stamp gets created and is saved under the WFuser, the user that is specified in the workflow's connection profile.  I believe it is saving under this user because I am using the RAsession object that is provide by that connection profile.  Is there a way to pull the session of the user that initiated the business process, or if there is a way to save the personal stamp under a different user from the one specified by the RAsession? 

Please let me know if I need to clarify on anything, and any information on this is greatly appreciated!  

Thank you!

Bich

 

Code snippet for saving stamp.

                    StampInfoReader ListOfStamps = Stamp.EnumPersonalStamps(RASession);
                    foreach (StampInfo SI in ListOfStamps)
                    {
                        if (SI.Name == "Dynamic")
                        {
                            SI.Delete();
                            SI.Save();
                        }
                    }
                    StampInfo SInfo = new StampInfo(RASession);
                    SInfo.IsPublic = false;
                    SInfo.Name = "Dynamic";
                    SInfo.ImageData = image;
                    SInfo.Save();

 

0 0

Answer

SELECTED ANSWER
replied on April 7, 2015

There is no way to impersonate the user who started the business process at this time.

0 0
replied on April 7, 2015 Show version history

Okay, that's what I suspected.  Thank you Miruna.

0 0

Replies

You are not allowed to reply in this post.
You are not allowed to follow up in this post.

Sign in to reply to this post.