Skip to Content
author's profile photo Former Member
Former Member

caf gp process

hello i have process (p1) i've added 2 blocks and two users(not overseers, not admins and not owners), how can i get and filter running processes by process description ("toApprove") with this users, and process all actions for users.

Users are not admins, not overseers and not owners.

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on Nov 30, 2007 at 07:19 AM

    IWDClientUser wdUser = WDClientUser.getCurrentUser();

    IUser current_user = wdUser.getSAPUser();

    if ( wdUser.isAnonymousUser() ) {

    WDClientUser.forceLoggedInClientUser();

    } else {

    msgMgr.reportSuccess(wdUser.getLastName());

    }

    IGPRuntimeManager rtManager = GPProcessFactory.getRuntimeManager();

    IGPNotificationManager notifManager = GPProcessFactory.getNotificationManager();

    IGPContextManager contextManager = GPContextFactory.getContextManager();

    IGPUserContext userContext = contextManager.createUserContext(current_user, current_user.getLocale());

    Calendar calendar = Calendar.getInstance();

    calendar.set(2006, 1, 1);

    Date startDate = calendar.getTime();

    calendar.set(2006, 11, 31);

    Date endDate = calendar.getTime();

    IGPWorkItem[] wi = rtManager.getWorkItems(0, current_user);

    for(int i=0; i<wi.length;i++)

    {

    IGPProcessInstance inst = rtManager.getProcessInstance(wi<i>.getProcessID(),userContext);

    ////////////////////////////////////////////////

    How do i get - IGPProcessInstanceInfo[] if

    getRunningInstances(GPSearchRole searchRole, Date startDate, Date endDate, IGPUserContext userContext)

    returns null for all users(processors) (if user != admin, owner or overseer)

    //////////////////////////////////////////////

    }

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.