Skip to main content
10-Marble
May 17, 2011
Question

Principal Admin without Org/Site Admin?

  • May 17, 2011
  • 16 replies
  • 4188 views

I thought I saw a thread on here about allowing a user to act as a Principal Administrator without making them an Org/Site Admin? If you've done this can you explain how?


Thanks,
Steve D.

16 replies

22-Sapphire I
May 17, 2011
We have this exact need as well - haven't been able to figure out how.

Closest we've come is to make two people Org Admin, then apply a profile to them that hides all Org sub tabs except Utilities. Doesn't help much because they have all under the Utilities tab, but at least hides Profiles, etc.
1-Visitor
May 17, 2011
So, make a user who has Org Admin abilities…but use a profile to turn off the entire Org Admin tab?


[cid:image001.gif@01CC1494.656672F0]

Steve Vinyard
Application Engineer
10-Marble
May 17, 2011
That would work. I wish there was a way to remove the permissions rather than just the links.

Do any of the ACL's for objects like WTUser or WTGroup have any relevance for doing this?

Thanks,

Mike

1-Visitor
May 17, 2011
I am looking for a way to capture comments added in assignments and displaying them in downstream assignments or email notification in a workflow.

Thank in advance.



Ray

Ray Drennen
MCAD Administrator
Otis Elevator Company
5 Farm Springs Rd.
Farmington, CT 06032
860-676-5619 - voice
860-353-1356 - eFax

ray.drennen@otis.com <">mailto:ray.drennen@otis.com>

________________________________

1-Visitor
May 17, 2011
I think the comments are on the WFActivity or a link from it. Wanting this as well!


[cid:image001.gif@01CC149C.FF7FC8C0]

Steve Vinyard
Application Engineer
15-Moonstone
May 17, 2011
Please find attached code snippet. We capture comments off for certain Voting event from eventlist of WfVotingEventAudit. You may have to find the activity name for which you need comments.

Hope this helps.
Preeti
1-Visitor
May 17, 2011


Following could be one of the ways:-



1. Define a process variable "temp_comments"

2. Define a assigned activity local variable "activity_comments" and copy to
"temp_comments"

3. From the assigned activity "Complete" transition tab call the method
temp_comments = WorkflowHelper.getTaskComments(self);

4. Following is the method WorkflowHelper.getTaskComments



public static String getTaskComments(WTObject wto) {

String comments = ";

try {

WfAssignedActivity wfaa =
(WfAssignedActivity) wto;

Enumeration enumeration =
wfaa.getAssignments();

for (int iAct = 0;
enumeration.hasMoreElements(); iAct++) {

WfAssignment
wfassignment = (WfAssignment) enumeration.nextElement();

Enumeration
enumeration1 = PersistenceHelper.manager.navigate(wfassignment, "workItem",
wt.workflow.work.WorkItemLink.class, true);

for (int i =
0; enumeration1.hasMoreElements(); i++) {


WorkItem wi = (WorkItem) enumeration1.nextElement();


ProcessData pd = wi.getContext();


comments = pd.getTaskComments();


if (comments != null) comments = comments.trim();

}

}

} catch (Exception e) {

e.printStackTrace();

}

return comments;

}





4. temp_comments can be used downstream for different purposes.



Let me know if this meets your requirement.





Thank you and have a great time.

Best Regards

Swamy Senthil

Principal Solutions Architect, Swasen Inc

swamy.senthil@swasen.com(Email); 909 800 8423(M); 973 324 2729(W); 866
908 6561(F);






12-Amethyst
May 17, 2011
I hope this hasn't already been addressed. If so, then maybe I can get a
quick refresher.

Is there a way to use Query Builder to get the latest version only of a
document number without using lifecycle state or some other criteria? I
want to mimic the behavior of the "Go to Latest" link using query builder,
but I am not sure how Go to Latest works at the database / object model
level. Can anyone explain how Go to Latest actually works (i.e. what
tables are involved in finding that latest among multiple revisions where
each revision has its own "latest" iteration)?

Thanks.

Al Anderson
22-Sapphire I
May 17, 2011
It's unbelievable that Latest Rev is not there to select.

You have to use Sub Select on Maximum of VersionSortID
17-Peridot
May 17, 2011
Al,



I have not tried this in a while, but this trick used to work very
nicely