taskSvc.reassignTask () API give do not permissions on the task to all users also.

Hello

JDeveloper/SOA/BPM 11.1.1.7

WebLogic 10.3.6


I am programmatically reassign a task (which is by default assigned to a group) to a set of users using the following API.


taskSvc.reassignTask (ctx, task, newTaskAssignees);


The 'newTaskAssignees' is built for a set of users by ITaskAssignee objects of Type user.


User ITaskAssignee = new TaskAssignee (user, IWorkflowConstants.IDENTITY_TYPE_USER);

NewTaskAssignees list < ITaskAssignee > = new Arrayist <ITaskAssignee< ();


The controllers are usually the current user and other users.

After the 'reassignTask()' method is called, the task is assigned to all users successfully.


But the problem is not that all users get the privileges on the task all too.

Only the current user is able to perform all actions on the task (as redirect, approve, reject etc.)

All other users do not receive these actions when also looked into the workspace of BPM for this task.


I tried the following.


Manually 'release' the task of the BPM workspace by logging in as a user with original permissions.

After that all other controllers task get all actions.


Obviously, the task is "acquired" by the current user who is logged in when the API 'reassignTask()' is called.


So, I tried to call the 'releaseTask()' method after calling the reassignTask() method.

But when I call the releaseTask() method gives the following exception


Exception: Action RELEASE task '< taskId >' cannot run the user "abcd".


I also tried to question the freshly task using the "querySvc.getTaskDetailsById ()" after the call to the reassignTask() method.

But still get the same exception


Is there something I'm missing here?


Thanks for any help.

Sameer

This problem is solved.

In fact, after the output of the task the payload is updated again, which was originally the task that needs to be acquired by the user, and therefore no one else could not perform any other operations on the task.

So after the task he must be released again.

Here are a few points we should remember when you work with the BPM API as above.

1. always question the task using getTaskDetailsById() or getTaskDetailsByNumber() before any operation on it. If it is updated in the meantime, the operation may fail.

2. after the execution of the operation on the task, we need to release him if we want other assignees to be able to work on the task.

3. If he is assigned to multiple users or groups, better is worth to acquire the task before calling top transactions.

4. of course no other operations or payloads updates are performed which may cause the task to acquire automatically.

Tags: Fusion Middleware

Similar Questions

  • I have the time to default iPhone 4 iOS 7.1.2 iPhone App not updated since the last 3 days and also checked all the settings for location and also set as new iPhone always present problem... Please try to fix... Thanx

    I have the time to default iPhone 4 iOS 7.1.2 iPhone App not updated since the last 3 days and also checked all the settings for location and also set as new iPhone always present problem... Please try to fix... Thanx

    Turn off your device and turn it on again. If this does not help, sign out of your account and reconnect.

    In addition, you can try to reset your settings.

    • Press and hold the sleep/wake button
    • Press and hold the Home button
    • Press and hold both buttons until the display turns off and on again with the Apple logo on the subject.

    Alternatively, you can go to settings - general - reset - Reset all settings

  • Probems with the service for all users of Windows Installer Agent is not able to run

    Day 2 after the installation of Windows 8 on my desktop PC, all the user accounts with a standard profile are unable to connect. However, my admin account can connect and I get a message saying that the 'Agent Windows all users install' does not work so why accounts no administrator cannot connect.

    I restarted the service but she turns for a few seconds and ends without a message. Several attempts to restart it have failed.
    Is this a problem with Windows 8?

    I just found out that I must be an ADMINISTRATOR to do. Thanks much for the reply

  • I downloaded and installed 6 Lightroom. The icon is on my desk, but it does not open. The old version is still also, and it works as usual.

    I downloaded and installed 6 Lightroom. The icon is on my desk, but it does not open. The old version is still also, and it works as usual. How can I fix it.

    Hey Alian,

    Please try to follow the steps in the article.

    http://helpx.Adobe.com/creative-cloud/KB/sign-in-out-creative-cloud-desktop-app.html

    Kind regards

    Sumit Singh

  • said its opening, but it's not. It is not yet on the Task Manager?

    tried to open Mozilla Firefox, but it is not appearing on my screen, the symbol does not appear in my start bar, and Manager tasks didn't pick up any sign of it. but when I tried to uninstall it, a pop-up explains how it works.

    Sometimes the program stops, but not completely. A background
    . is still ongoing. To find in this case, open the Task Manager. You can look but not
    . find that Firefox mentioned here. Then select the process. You will find the
    Firefox.
    . Right-click on it and select end process. You should be all set.
    .
    .
    . HOWEVER... If this continues to be, let us know.

  • Custom scale does not work in the task of the accelerometer

    I use a NI 9234 to measure acceleration. In the task of the acceleration, I set the sensitivity 1000 mV/g, and I try to use a custom scale to correct the actual sensitivity of the accelerometer (~10mV/g). The excitement is the internal value and 2mA. The input is AC coupled. When I run the task, the scale has no effect on the output values. With 1 G asked the accelerometer, the output remains ~.014G(pk) as a custom scale is used or not. This is normal behavior for a task of accelerometer?

    LabVIEW 2009 SP1

    NOR-DAQ v9.1.1


  • Trigger start analogue does not work for the tasks of the analog output

    Hello. I wonder - what someone has tested the trigger mode analog start for continuous output voltage-. example of VI under hardware input and output - analog output folder in the Labview.

    My camera's SMU-6358, who has two lines APFI and supports analog trigger. Although it is very difficult to find information on the use of analog trigger for analog output of the tasks, what I've learned so far is to connect the interested analog trigger signal (such as an external noise) on both the AI channel which is used as a source of relaxation (ai0 in my case) and a two-channel (APFI0 in my case) APFI.

    During the test the example above vi, any level of relaxation that I put (even with 0), the task of output did not work at all. No error message is returned either. Just for your information, I do physical tests, not only the software simulation, so no signal means no signal.

    Any help is appreciated!

    I have here is that the solutions to this issue, just want to say thank you to all who have helped me on this subject.

    Use the analog analog trigger output tasks, make sure that the trigger signal (input HERE) is connected to APFI0. There is no need to connect the trigger even signal to ai0 if you do not want to save the trigger signal. However, if you do not want to save the trigger signal, connect the trigger signal to both ai0 and APFI0 with a signal splitter. In the latter case, the task of the AI shouldn't take the same trigger that the task of the ao. This means that you can start your registration with or without a trigger, while leaving the task of ao wait a trigger of some signal. This is useful in a situation that you only want to generate ao task to a certain trigger event, as when a signal reaches a certain level of sound pressure.

  • Custom event is not captured by the Task Scheduler and unable to trigger by e-mail for the event

    Hello world

    We have installed the 9.0 table in our windows 2008 R2 server and Scheduler tasks to send if you find error occurred for the application in it. That's why we created SMTP inside. First, we have implemented the Task Scheduler and generate an error in the application of the table and run the task manually and we receive by e-mail. But when we go for automation by the custom event. The steps below that I follow:

    1. click the Start button, and then select administrative tools > Task Scheduler.

    2. click on the task of creating in the Actions pane on the right.

    3. in the dialog box create a task in the name text box, type a name for the task and provide a description if you want.

    4. in the section security options, select run whether user is logged in or not.

    5. click on the triggers tab, and then click the new button.

    6 to start the task drop-down list, select an event.

    7. in the settings section, select custom and click the new event filter.

    8. for the event level, select the error box.

    9. selection of the Source, in the event source drop-down list, select the table server checkbox.

    10. click OK to close the new dialog box even filter and then click OK again to close the new trigger dialog box. The event trigger is now configured.

    11. in the dialog box create a new task, click the Actions tab and click the new button.

    12. in the Action new dialog box, in the drop Action, select send e-mail.

    13. under the settings section, fill in the form as required, including the SMTP server.

    Note: It is necessary to enter the valid e-mail addresses in the From and to text boxes.

    14. click OK to close the new dialog Action.

    15. click OK to close the dialog box create a task and finish configuring e-mail alert.

    If please see this and feel free to contact me if you have any information.

    Concerning

    Valerie

    Mob: 469 345 3625

    This issue is beyond the scope of this site (for consumers) and to be sure, you get the best (and fastest) reply, we have to ask either on Technet (for IT Pro) or MSDN (for developers)
    *
  • Progams in x 86 folder do not appear in the Listing of all programs

    I just upgraded to Vista 64 bit Ultimate for Windows 7 64 bit Ultimate and good number of my x 86 programs do not appear in the list of programs all in fact you can even find them using the search command, but they are clearly there in the X 86 folder. I know that I can create a shortcut on my desktop or pin them to the start menu, but there are literally dozens of programs in there that I use semi systematically in the X 86 folder that I don't want on my desk or pinned to the start menu. Often when I try and call a program of a doucument windows comes up with the association of file menu, but the program (X 86) is not displayed. Is this a bug with my system or a known problem such as Google Earth users know ovet the past year where as a result of an upgrade of the Windows program removes program form the list of all programs and removes the desktop icon?

    Hello Scourtercraig,

    A similar thread has responded here. I also found a third party article in which to some people have found a solution: Windows 7 - 86 program files not showing in the Start Menu. I hope it helps.

    Lisa
    Microsoft Answers Support Engineer
    Visit our Microsoft answers feedback Forum and let us know what you think.

  • Total memory of 4 GB newly installed does not appear in the Task Manager

    Total memory of 4 GB newly installed does not appear in the tab of the Task Manager performance. Only 3.3 GB appears. Is something wrong with the chopsticks of mem or mem from Vista 32 bit OS limit uses at this level. I have SP2.

    http://support.Microsoft.com/kb/929605

    "System memory shown in the system information dialog box in Windows Vista is less than expected if the 4 GB of RAM is installed.

    This behavior is the expected result of some hardware and software factors.

    Various devices in a typical computer require memory-mapped access. This is known as memory-mapped i/o (MMIO). For the MMIO space is available for 32-bit operating systems, the MMIO space must reside in the first 4 GB of address space.

    For example, if you have a video card that has 256 MB on-board memory, that memory must be mapped in the first 4 GB of address space. If 4 GB of system memory is already installed, the part of this address space must be reserved by the graphics memory mapping. Graphics memory mapping replaces part of the system memory. These conditions reduce the total amount of memory available to the OS System.

    The reduction in available system memory depends on the devices that are installed in the computer. However, to avoid potential driver compatibility issues, 32-bit versions of Windows Vista limit the total available memory to 3.12 GB. See the section 'More information' for more information on potential driver compatibility issues.

    If a computer has many features implemented, the available memory can be reduced to 3 GB or less. However, the maximum memory available in 32-bit versions of Windows Vista is typically 3.12 GB.

    See you soon.

    Mick Murphy - Microsoft partner

  • After creating a task, it is not listed in the Task Scheduler Library.

    Hello

    I created a system task to the system log. It was supposed to send an email to me whenever the event is logged.
    After saving it, I wanted to get to the Task Scheduler Library, but it has not been listed. I tried to create the task again, but it is said that a task with the same name already exists. The event took place, and when I looked at the status of the task, it shows the name of the task with the result of success.
    How can I remove / edit the task when I can't? Help appreciated.
    Thanks in advance
    Richard
    original title: event schedule

    There is a small arrow to the left of the entrance to the Task Scheduler Library, click the arrow to expand the list to view tasks created by the system.  Then browse folders to find the one that you created.

    Defragmentation, just for example, is to

    Library of Task Scheduler, Microsoft, Windows, Defrag

  • Scheduler - not triggered when the task "run if the user loged on or not."

    I m, creating a task that is mapped to a file is to run,

    I have his work automatically and manually when the option (button) "run only when the user is logged on" is selected.

    but the automatic/manual RACE does not work when the option (radio button) "Run if user logged on or not" is selected.

    Please help us to solve the issue.

    "Run If the user of connect or not" only works if the task does not call a user interface.  I have found this workaround to How to run. BAT files invisibly - Ramesh Srinivasan and it works successfully "Run if user logged in or not ' in Task Scheduler batch files now.

  • Cursor is not appropriate for the task in Illustrator.

    I'm working on an illustration with several layers, some layers are of type... I have now a problem with the slider resembling a small pen and a circle with a line through it, as in 'you can not draw on this layer', but all I want to do is change and move the type on this unlocked layer. I can get the cursor arrow by holding down the key command key and then I can move the type, but I can't get other tools, like the text tool... very frustrating and I had to stop this project and hope that someone can help me with this strange behavior.

    TIA,

    Ken

    If you don't find anything, please make a screenshot with layers open. Click on the small triangle to the left of the layer.

  • Dreamweaver does not appear in the extensions manager all please help more

    Dreamweaver does not appear in the extensions manager the most

    Help, please

    I have a backup of my hard drive, so I could search for missing files

    Thank you

    nicolasatpewny.com

    The extension manager is no longer supported by adobe, Adobe Exchange:

    Extension Manager no longer work after the update CC 2015

  • How to give read, write permission to the directory from one user to another user in oracle 10g

    Hello

    I have a database in two. key is the source database and Board of Directors is the target database. Now I want a (single) create these two database directory to put the dump file. How can he give permission to READ, WRITE access to this directory both of database? Someone help me.

    Hello

    I think that first create a level of operating system directory, and then try Mr.Kar k steps

    OF DATABASE1 (KEY)

    SQL >dir1 CREATE or REPLACE a DIRECTORY as "/ opt/oracle / ';

    SQL >GRANT READ, WRITE on dir1 to the PUBLIC; (if you want to give access to all users then give public access)

    SQL >GRANT READ, WRITE on rep1 to ; (if you want to give access to the particular user)

    OF BASE2 (COUNCIL)

    SQL >CREATE Or REPLACE rep1 as DIRECTORY "/ opt/oracle / ';

    SQL >GRANT READ, WRITE on dir1 to the PUBLIC; (if you want to give access to all users then give public access)

    SQL >GRANT READ, WRITE on rep1 to ; (if you want to give access to the particular user)

Maybe you are looking for

  • negoci in app

    I want to buy a 5,200 pokecoins in the pokemongo, but when I put my apple id password and confirm the pagament. the Apple show my

  • Do not disturb don't DO NOT WORK

    Hello so, a few days ago I turned on DO NOT DISTURB option and realized I was still getting notifications from social media and the Moon was gray. I rebooted, it think it would go and be normal as usual ar - na NOT WORKING, so I updated to iOS from 9

  • My Itunes does not save my iPhone saying that the backup is damaged or is not compatible with the iPhone.

    I / m trying to backup my iPhone 5, but the iTunes says it is not possible because the backup is damaged or is not compatible with the iPhone... What should I do?

  • Remote Web Workplace - VBScript: Remote Desktop disconnected

    Using Small Business Server 2003 (SBS 2003 SP1 Premium).  The Remote Web Workplace Remote Desktop connection has worked for years.  We apply Microsoft Updates to the server last week and since that time, we get a message telling VBScript: Remote Desk

  • I would like to implement skpye

    I would like to set up Skype. I thought I had done this before, but I also Logitech which would interfere with Skype? If yes you said to me how to add my son on Skype. He doesn't have a logitech [Moved from comments]