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

Community Tip - You can change your system assigned username to something more personal in your community settings. X

Checkout Method Robot

pwilliams-3
12-Amethyst

Checkout Method Robot

10.1 M040

I have a workflow with a Checkout Method robot that checks out a WTPart to the Creator Actor. Then after some processing I have a Checkin Method robot. When I look at the history of the object I see that Administrator was the last modified. I would have expected the Creator principal to be listed in the history. Am I missing something? Can someone tell me how this should work?

[cid:image003.png@01CFEFA2.60B09780]



Patrick Williams | Engineering Systems | c: 616.947.2110
[cid:image004.jpg@01CFEFA2.60B09780]

1 REPLY 1

Patrick,

Try the following logic (on a test server) and check if it makes any
difference.

Use "SessionHelper" API to set the current principal to creator
Implement your business logic (check out and check in)
Reset the current user to administrator using "SessionHelper" API

*Note:*

- Please test this behavior before making changes to production environment
- You may use following APIs

WTPrincipal administrator = (WTUser) SessionHelper.manager.getPrincipal();

SessionHelper.manager.setPrincipal(creator.getName());

SessionHelper.manager.setPrincipal(administrator.getName());


--
Rochan Hegde
Productspace Solutions Inc.
Cell: 630-495-2999 x 8121

On Fri, Oct 24, 2014 at 2:51 PM, Williams, Patrick <
-> wrote:

> 10.1 M040
>
>
>
> I have a workflow with a Checkout Method robot that checks out a WTPart to
> the Creator Actor. Then after some processing I have a Checkin Method
> robot. When I look at the history of the object I see that Administrator
> was the last modified. I would have expected the Creator principal to be
> listed in the history. Am I missing something? Can someone tell me how
> this should work?
>
>
>
>
>
>
>
>
>
> *Patrick Williams* | Engineering Systems | c: 616.947.2110
>
> [image: sc_inc_black_sig_1_alt]
>
>
>
Announcements


Top Tags