GP API - remove user dynamically for a task..

I am having dynamic looping for an action, users assigned in every level.
I am able to add user dynamically for an action using:
rtm1.addRuntimeDefinedUserToRole(prInstance1, Next_Action, userJames, userContext1);
Change user does not work as it will work only for running actions or tasks, for pending one it will not
rtm.changeTaskProcessor(processInstanceID, activityInstanceID, currentProcessor, newProcessor);
remove user is not working for me? suggest me how to use this code?
IGPProcessRoleInstance processRoleInstance=executionContext.getProcessRoleInstance();
processRoleInstance.removeUser(UMFactory.getUserFactory().getUserByLogonID(UserId));

Hi
I tried using the following for my process where the action is yet to happen
I am calling the BG CO before my action. I need to remove the previous user.
rtm1.removeTaskProcessor(prInstance1.getID(),activityInstanceID, userContext1);
rtm.changeTaskProcessor(processInstanceID, activityInstanceID, currentProcessor, newProcessor);
processRoleInstance.removeUser(UMFactory.getUserFactory().getUserByLogonID(UserId));
but nothing is working.
any idea when we can use them? I think changeTaskProcessor will not work for pending tasks.
I am able to get the activityInstanceID from NWA -> GP Processes, but my GP Process is having dynamic loop where the task will generate depending on levels. How can we get the activityInstanceID of the next task/action?

Similar Messages

  • User dynamic for RFC communication channel

    Hello,
    we are developing an architecture for a bank company. We have a JAVA frontend and a R/3 backend, with a XI machine between both. All the authorizations are implemented inside the R/3 backend, and we need that all the users of the frontend exist on the backend. For this reason, when we define the RFC communication channel inside the integration builder configuration, the user must be dynamic. However, on the RFC communication channel only an static user-password is permitted. Could you tell us a possible way to define this user dynamically?

    Hello,
    SSO - Single Sign On is not supported in XI3.0, communication channels need a service id for talking with R3.
    We have been following up with SAP for SSO functionality. Its still in the pipeline. In the near future they may provide SSO.
    Regards,
    Naveen

  • How to remove User IDs for deleted users from the Disk Quota list

    Hello,
    We have a computer lab setup with an Xserve managing 15 stations in the lab. Users are setup with networked home directories and quota's are setup on the drive containing the home directories to limit users' storage.
    The user account and the quota limit are setup with Workgroup Manager. When a student has been gone for a while and we are sure they no longer need the account we delete their account within Workgroup Manager and move their Home folder to the trash.
    When viewing disk usage in Server Admin (by selecting the volume and clicking the Quatas tab) user ids for deleted users are listed and it still shows the disk usage and quota settings for the user.
    How can I remove theses user ids from the quota list?
    Any help would be appreciated.
    Brian

    I would restore User's file structre back to normal just by copying from standby user?
    Did you mean copy files to a new user profile? If so, hope this link can be helpful for you
    http://windows.microsoft.com/en-in/windows/fix-corrupted-user-profile#1TC=windows-7
    For the unknown user, as you said, it's probably a user account from second OS or
    action. If you're annoying about this unknown user, then you can remove all occurrences of granted rights to the specified SID with this command icals [/remove[:g|:d]] <Sid>[...]] [/t] [/c] [/l] [/q]
    http://technet.microsoft.com/en-us/library/cc753525.aspx
    Yolanda Zhu
    TechNet Community Support

  • Lion upgrade removes user/group for nagios (nrpe)

    FYI:
    Maybe this'll help someone else. I run nrpe/nagios on a couple of my Macs. Upgrading to Lion from SL the upgrade installer removed the user/group for nrpe. On reboot, launchd could not start the process because getpwnam("nagios") failed. The error was repeatedly reported to system.log (Macintosh com.apple.launchd[1] (org.nagios.nrpe[18251]): getpwnam("nagios") failed) causing launchd to use excessive CPU and battery. Recreating the user/group allows the process to start, which allowed launchd to return to normal CPU levels. Also maybe helpful is that when I turned networking off launchd stoped reporting the error which caused the symptoms to stop (which sent me down a fruitless path).
    This error occurred on both a MBP and a Mac Mini. I've reported in via feedback.
    Thanks for listening... Mark

    I have a similar problem - I need to change my account (short) name so that I can backup both my old computer and new computer on timecapsue independently.  However, the link you provided is only for 10.6 and earlier, not for Lion.  Are the instructions for Lion similar?  For one, I have no directory utility on Lion.
    Thanks for your help.

  • OIM 9.1.0.2: Remove user assigned to a task in Provisioning Process

    I have read Note: Ability to Have Multiple Approvers Per Resource Object in OIM [ID 429999.1], and executed each steps described in it. But when grant these resource object to some user. First the request was not sended directly to a approval process, as had been expected that I would. The request was send to a provisioning process, specifically to user has been assigned a task, when the user approves the request until the request is then sent to approval process.
    I need to send directly to a approval process, because that's where I have defined my levels of approval.
    I'm using oim 9.1.0.2 BP18 running on OC4J 10.1.3.5 on AIX 6.1 64-bit clustered install with two nodes, Oracle Database 10.2.0.4 on AIX 6.1 64-bit on RAC.

    Hello Everyone,
    Thanks for your response. Actually i have a Approval Process, where i have defined my levels of approvals. In Resume I have this Env. :
    1.- A Resource: ResourceA
    2.- A Provisioning Process in relation with ResourceA.
    3.- A Approval Process in relation with ResourceA.
    The request was send to a provisioning process, specifically to user has been assigned a task, when the user approves the request until the request is then sent to approval process.
    I need to send directly to a approval process, because that's where I have defined my levels of approval. In other words i need to bypass the user assigned a task in provisioning process.

  • How to remove user authentication for SAP Web Service?

    Hi there,
    I am using SAP Web Services in my flex application. Every time wsdl url is called, the username\password window pops up. I want to remove this.
    I searched in the forum and based on the discussions, I tried giving the user name password under Web Service Administration using SOAMANAGER, by selecting No Authentication option. But this did not work. I still get that pop up.
    I also tried giving the credentials in SICF, under Logon Data tab of the service. This too failed. I kept getting the pop up.
    Can someone pls let me know how can I remove this? If username password in mandatory to be passed, I can create a temporary username which will be used to access all of my webservices and use it. But I want to remove this authentication part when I am using the flex application ang calling the web service url from within it.
    Appreciate your help.....
    -Deepak

    Hi,
    It is a little bit tricky, because the interface has changed several times in different releases. I know that it is possible without authentification.
    I remember that i defined somewhere the default client, the username and password in the ERP system to use by this web service.
    Maybe it helps if you try the old transactions WSADMIN, WSCONFIG or WSADMIN2 ?
    Sorry that I cannot help you more. I hope it helps.
    Best regards,
    Joern

  • Planned Task - Problems with user Rights for recurring tasks

    Hi there,
    I'm currently trying to configure a database replication tool from a 3rd party supplier to work as planned task on Windows Server 2012 R2 (Datacenter).
    There's a very strange problem, however: It does work perfect, if I configure the task to occur only once. It does not work, if I check the "Run that task each XXX hours/days"-Checkbox when configuring the Trigger.
    i.E.: works, when I have a trigger for each hour, doen't work if I configure one trigger to reoccur each hour.
    I tried to pinpoint that problem down, and I found that the task cannot access it's logfile when it's started "reoccurring" (It probably would not make sense to post a screenshot here, since I'm working with the german version of the server). It
    also does not work if I configure a specific trigger to end the task after XXX hours/days/etc. of operation.
    To form a more specific question: are there differences in the rights used to start a process, if it is scheduled to be started each our, by configuring a reoccurring trigger?
    Thank's in Advance,
    Alex

    Hi ALex,
    Would you please post more detailed information about Planned and recurring tasks?
    If you means creating task in task scheduler, in general, the triggers shouldn't frustrate the execution of the task, and we usually need to check the security option in the task.
    To troubleshoot the issue in task scheduler, please enable the task history: Open an elevated Task Scheduler (ie. right-click on the Task Scheduler icon and choose Run as administrator)->In the Actions pane, click Enable All Tasks History.
    If you means creating recurring tasks on project server, I recommend you can post in the dedicated Forum for a better response:
    https://social.technet.microsoft.com/Forums/en-US/home?category=project
    If there is anything else regarding this issue, please feel free to post back.
    Best Regards,
    Anna Wang

  • First time user--help for first task

    How do I take 2 pages from a PDF file sent to me, isolate them so I can copy/edit those two pages, and return those 2 pages to sender?

    Hi there,
    My recommendation is for you to follow these steps:
    1) Log into createpdf.acrobat.com and select "Export from PDF" on the right pane.
    2) Select your PDF file, select docx and click Export to export your file to *.docx.
    3) Once the export operation is complete, Download your converted file locally.
    4) Open the downloaded file using MS Word and make your necessary Edits.
    5) Save your edited file.
    6) In createpdf.acrobat.com, click Convert to PDF on the right pane.
    7) Select your edited docx file and convert the file to PDF.
    8) Download the file locally and send it to the appropriate sender using email or using Adobe's SendNow service (https://www.acrobat.com/sendnow/en/home.html).
    I hope this helps.
    Laura.

  • User exit for item level  plant checking for va01

    Hi ,
      I have got many user exits for va01 .I have to check the plant at item level in va01 . Kindly give name of user exit for this task as im not able to find the right one.
    Thanks .

    Hi,
    Please check through path
    S&D>>>System modification>>>Userexits.
    here you will find various user exits available for SD module.
    Regards
    kapil

  • How to programmatically add user comment using human task data control

    Hi,
    We create the task form by using “create Task flow based on Human task”. I need to programmatically create and insert the user comment for the task. I know I need to create and insert a new element to the userCommentIterator that linked to the human task data control. But I could not get it work or find any related detail sample coding. Please help.
    Thanks a lot,
    Helen

    post it in soa suite forum
    SOA Suite
    or bpel forum
    BPEL
    to get.. quick reply.

  • Dynamic User for a Task

    Hello,
    I want to know if it is possible to determine dynamically the user for a task? An example is an approval process (Depending on the user information determine how is the approver and send the task for that user).
    Thanks & Regards
    SU

    Hi,
    you can choose expressions when assigning owners to tasks.
    Within this expressions you can use the Principal Functions like getPrincipalByUniqueName() or getPrincipal().
    Best Regards,
    Timo

  • BPM 11.1.1.5 Dynamic assignment of task to user

    Hi,
    I'm working with BPM 11.1.1.5 (without feature pack). I have a requirement to assign a task to a user dynamically, based on data that I pull from a DB query. If the task expires, I will assign it to another user once again based on a DB query.
    I have not been able to find a way to do this. I have tried creating the Participant List "By Expression", where the expression is: /task:task/task:systemAttributes/task:assignees/task:id, where I have previously assigned a LDAP user id to a TaskExecutionData input variable. This does not work!
    I've read a number of forum posts where people are trying to do this, but they are either not answered or answered inadequately.
    I've read a number of posts where people talk about doing this using bpws:getVariableData() where the dynamic user list is stored in a variable. This would be great, if it worked for BPM as this is exactly what I'd like to do. However, this is a BPEL solution as far as I can see! I haven't been able to find a way to access a declared variable from the Expression Builder form in BPM.
    Does anyone have a solution for this, please?
    Any help would be greatly appreciated. Is this something that is easier to do in PS5?
    Many thanks,
    Brian.

    Hi Brian,
    Not sure if this is what you need, but to assign the BPM work item instance to a participant based on information read from a database table, one approach is to:
    1. Read the table and return the userId to a process data object variable upstream of the Interactive activity.
    2. Pass the variable with the user id into the Interactive activity's human task.
    3. Open the human task, click the Assignment tab -> double click the performer icon in the center -> change the "Build a list of participants using" dropdown to "Names and Expressions" -> click the plus icon -> click "Add a User" -> under "Data Type" change the dropdown selection to "By Expression" -> click the "..." button under "Value" -> expand "task" -> expand "task:payload" -> select the variable that you set the user id to.
    I think there is probably more to your question than this, but hopefully it's a start.
    Dan

  • Dynamic list of user(s) in Human task activity.

    Hello Friends,
    Warm Greetings!!!
    Here is my query:-
    Can we have dynamic list of user(s) in human task for the same role. Request will flow to executive but based on some parameter it needs to go to different executives and this would be checked at run time.
    Please provide some clue or pointers for the same.
    PK

    ===========
    Assign tasks dynamically
    You can assign users, groups, and application roles dynamically using XPath expressions. These expressions enable you to dynamically determine the task participants at runtime. For example, you may have a business requirement to create a dynamic list of task approvers specified in a payload variable. The XPath expression can resolve to zero or more XML nodes. Each node value can be either of the following:
    Ref- http://docs.oracle.com/cd/E14571_01/integration.1111/e10224/bp_introhwf.htm
    ==============
    Either You can put a Xpath expression on Owner (open Human task from composite and see the General tab ) or you can have rule based assignment for users .
    Also in Xpath - Identity related functions can be found under - Identity Service Functions (from Functions drop down)
    Regards
    Rupesh Somani

  • Can we give UNIQUE ACCESS FOR THE SPECIFIC FILE IN THE LIBRARY in SP2013? How can we remove users from SHARED WITH link where files are shared with users?

    Hi,
    Any help on this?
    Thanks
    srabon

    Hi srabon,
    For giving unique access for a specific file in a library, you can go to the library, and select the file , and click FILES->Shared With->ADVANCED, under PERMISSION ribbon, click ‘Stop Inheriting Permissions’, then the file will have unique permissions.
    For removing the shared users for a file, firstly, like the above steps, select the file , and click FILES->Shared With->ADVANCED , make sure the file has unique access, then select the users that you want to remove, and click Remove User Persmissions
    under PERMISSIONS ribbon.
    I hope this helps.
    Thanks,
    Wendy
    Wendy Li
    TechNet Community Support

  • How does schedule with RESTful API a Webi report for a group of users ("Schedule For" to "Schedule for specified users and user groups" with one or more users/groups)?

    SAB BO 4.1 SP1
    Does it have an RESTful API to schedule a Webi report with the parameter to specify a group of users ("Schedule For" to "Schedule for specified users and user groups" with one or more users/groups)?

    Hello Ricardo,
    have you try a call like this one ?
        <schedule>
          <name>"test"</name>"
          <format type=\"webi\"/>
          <destination>
            <inbox>
             <to>userId1,userId2,userId3,groupId1,groupId12</to>
            </inbox>
          </destination>
        </schedule>
    Regards
    Stephane

Maybe you are looking for

  • E51 Improvements

    My list of things I'd like changed/fixed: No carriage return/new line facility in Mail / Text editing (unless there's a key combo for it ?). This is a real pain for me currently. In SMS / Text editing the Reply To and Delete Text options should be ab

  • Quicktime and Itunes aren't opening up. Please help. Please.

    Hello to all who have visited this post. Basically i'm not very good with computers. So i apologise for the ''noob'' internet/computer knowledge. I bought my Ipod a couple of months ago. Everything was fine. I could transfer songs from computer to Ip

  • Is ther a FM to get the open order qty for a particular material &salesorg?

    Hi experts,                 I have requirement to find the open order qty for a given sales org (plant will be even better ) and material in my report. I do not want to use the standard tables as i need to fetch all records without any time restricti

  • Best way to do a simple slide animation in GoLive 6?

    Hi, I'm an illustrator and manage my own site (only) in GoLive 6. I only update rarely and this last time it has been 3 years. My index page has a single image, but I'd like to use 4 or 5 images cycling in that spot with the best "disolve" I can get.

  • Dead links on the Download Page

    I noticed a few of the downloads on the Flex page were not working... couldn't figure out a better place to mention this so I decided to post here. Anyone know a better spot? Anywho, the two links I tried to hit were: http://opensource.adobe.com/wiki