Customize / Override BPM in-build actions like reassign

We have a requirement to override the reassign action in BPM workspace to perform certain checks before allocate to person. Basically when a supervisor is reassigning a task, he can only reassign the task to a member who work under him and also has specific skill (these information maintained in a DB called agent profile) to be performed.
If anyone knows about the steps or any documents, request you to please share with us. We are closing our UAT and this has came as a UAT feedback. We are at the edge of production now, hence the solution is urgent for us.
Thanks in advance,
Rati

Sorry - don't know who wrote this code but hope it is the reassignment logic you are looking for:
/* Copyright (c) 2004, 2009, Oracle and/or its affiliates.
All rights reserved. */
   DESCRIPTION
    Sample that demonstrates how to programatically reassign human workflow task from one assignee to another
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import oracle.bpel.services.workflow.IWorkflowConstants;
import oracle.bpel.services.workflow.WorkflowException;
import oracle.bpel.services.workflow.client.IWorkflowServiceClient;
import oracle.bpel.services.workflow.client.IWorkflowServiceClientConstants;
import oracle.bpel.services.workflow.client.WorkflowServiceClientFactory;
import oracle.bpel.services.workflow.query.ITaskQueryService;
import oracle.bpel.services.workflow.task.ITaskAssignee;
import oracle.bpel.services.workflow.task.ITaskService;
import oracle.bpel.services.workflow.task.impl.TaskAssignee;
import oracle.bpel.services.workflow.task.impl.TaskService;
import oracle.bpel.services.workflow.task.impl.TaskUtil;
import oracle.bpel.services.workflow.task.model.Task;
import oracle.bpel.services.workflow.verification.IWorkflowContext;
public class ReassignTask
    public static void main(String[] args) throws Exception {
        //command line input arguments validation
        if ( args.length != 6 ) {
            System.out.print("Usage: java ReassignTask protocol(SOAP/REMOTE) fromUser(jcooper) fromUserPassword(welcome1) taskId toUser(jstein) type(user/group/application_role)");
            return;
        String type = args[5];
        if (!((type.equals(IWorkflowConstants.IDENTITY_TYPE_USER)) ||
              type.equals(IWorkflowConstants.IDENTITY_TYPE_GROUP) ||
              type.equals(IWorkflowConstants.IDENTITY_TYPE_APPLICATION_ROLE))) {
            throw new Exception("Type has to be user or group or application_role");
        reassignTask(args[0], args[1], args[2], args[3], args[4], args[5]);
    public static void reassignTask(String protocol, String fromUser, String fromUserPassword, String taskId, String toUser, String type)
        throws Exception {
        System.out.println("Using the protocol " + protocol + " for reassigning the task " + taskId + " from " + fromUser + " with password " + fromUserPassword + " to " + toUser + " of type " + type + " ..... ");
        Map<IWorkflowServiceClientConstants.CONNECTION_PROPERTY, String> map =
            new HashMap<IWorkflowServiceClientConstants.CONNECTION_PROPERTY, String>();
        // get Human Workflow client
        IWorkflowServiceClient wfSvcClient = WorkflowServiceClientFactory.getWorkflowServiceClient(protocol, map, Util.getLogger());
        ITaskQueryService querySvc = wfSvcClient.getTaskQueryService();
        IWorkflowContext fromUserCtx = querySvc.authenticate(fromUser, fromUserPassword.toCharArray(), "jazn.com");
        Task task = querySvc.getTaskDetailsById(fromUserCtx, taskId);
        ITaskAssignee toUserAssignee = new TaskAssignee(toUser, type);
        List l = new ArrayList();
        l.add(toUserAssignee);
        ITaskService taskSvc = wfSvcClient.getTaskService();
        Task reassignedTask = taskSvc.reassignTask(fromUserCtx, taskId, l);
        System.out.println("Task was re-assigned successfully from " + fromUser + " to " + toUser);

Similar Messages

  • Can you copy a build action from one image to another?

    Hello - is it possible to set up a build action for a shape/image and then copy these attributes to another shape/image? I tried to use copy/paste styles however this did not work.
    I need to replicate the same path/build sequence many times over many different objects and I do not want to have to recreate many times.
    Thanks in advance.

    There is no way I know of to replace an object with another object. If you have images, you could create a single object, copy it, and use the "Image Fill" of the object to place the images "inside" it -- if the object is not stroked, it will look like the image, and not the original object, and if it has transparency, like a PDF, those transparent areas will remain transparent. (Note that you can also create PDF images of Keynote objects themselves using the Preview Passthru technique.)

  • How to hide previous shape for build action?

    I have a white shape that appears on click.  I need to display another wider shape with less transparency on the 2nd click.  But the first shape needs to hide because of transparency in the 2nd shape.
    I'm not sure how to affect a shape lower down in the build order.  From what I understand, only one build action can be applied per option.  Is there some way to accomplish this type of workflow?

    Looks like this can be done as a build out.

  • Is it possible to get the thumb through feature in keynote (inspector build actions thumb through) to do a loop of photos instead of just going through them once?

    Need to know urgently for a seminar as there is discussion and i need continual photos flicking through and want to use Keynote for it as it looks far more professional.
    Thanks for your comments and answer!

    Hi, i dont know if this is exactly what you want but you can experiment with the different options.
    Inspector
    Build
    Action
    Thumb through
    More Options
    Then on the right side, there is the build order. The first build is assigned as Start Build-> On Click
    For the second build and on you have to choose: Start Build->Automatically with build 1.
    You can choose the delay you want (the interval between each move)
    Hope this helps
    Dimitris

  • Is it possible to override built-in forms procedures like call_form?

    hi, is it possible to override built-in forms procedures like call_form? i want to override an existing built-in procedure so i don't need to change all my .fmbs. thanks in advice

    Hi,
    You cannot override them. However, you can create a procedure within the package with the name call_form and use it as package_name.call_form instead of call_form (use the search and replace functionality to replace the call_form with package_name.call_form).
    -Arun

  • HT1338 How can I get a copy of iWeb or a web building software like Iweb

    How can I get a copy of iWeb or a web building software like Iweb

    You can look on eBay, amazon.com, or Google search for the iLife boxed set that contains iWeb. If you just want any web building tool you can take a look at Sandvox 2.5.6, RapidWeaver 5.2.2, Freeway Pro, Coda, Freeway Express, or KompoZer as a starting set.

  • I have 100 groups in planning for those 100 groups i want to build roles like interactive,view user,planner etc.for those how to change in export -import folder .xml file  in that edit  how  to change user roles in that xml it will generate automatic id.h

    I have 100 groups in planning for those 100 groups i want to build roles like interactive,view user,planner etc.for those how to change in export -import folder .xml file  in that edit  how  to change user roles in that xml it will generate automatic id.how to do that in xml file ?

    Thanks john for you are reply.
    I had tried what you sad.I open shared service in that foundation project i had export shared service.after that in import-export file.In that role.csv,user.csv,group.csv.Like this file have.When i open user file added some users after i trying save in excel it shown messgse
    I click yes and save the .csv file and import from share servie. i got error like this
    am i doing right way john.or explain clearly

  • Recording actions like Macro ?

    Hi,
    Does labview has option to record actions like how we do it in Excel application?
    Regards
    Gopal

    Hey DEV I think what he is talking about is will labview allow me to create a macro so that I can do the same thing over and over again. The answer is no. however i have seen some software on the Internet that will record repetive macro's (keystrokes really) so that you can do some of the functionality of a macro. But nothing to the caliber of what excel or word does. LV will run macro's for other applications such as excel or word but it does not have a built in way to do it on its' self. 
    Joe.
    "NOTHING IS EVER EASY"

  • Workflow actions like FORWARD, RETURN, CANCEL in the Custom Screens

    We have a requirement to perform the Workflow actions like FORWARD, RETURN, CANCEL from a Custom transaction Screen.
    Usually these Workflow actions can be performed from SAP Inbox SWBP of the user and related WF logs are reflected by SAP automatically. 
    For example,
    we will add the Push buttons in CC02 transaction and want to perform these Workflow Actions, Is it possible to do so? If possible, How can I reflect these changes into WF logs and all similar to Standard SAP?
    Help is appreciated.
    Thanks,
    Prathap

    we will add the Push buttons in CC02 transaction and want to perform these Workflow Actions,
    Is it possible to do so? If possible, How can I reflect these changes into
    WF logs and all similar to Standard SAP?
    Question & Answers
    we will add the Push buttons in CC02 transaction ?
    Are you going to add only one button or three separate buttons, if you can add three separate buttonts then under each button action,
    For Forward  =  SAP_WAPI_FORWARD_WORKITEM make use of the standard FM.
    For Retrun ( Assuming that you want to put back the workitem ID back to the user's inbox ) in that case use of FM SAP_WAPI_PUT_BACK_WORKITEM.
    For Cancel   =  SAP_WAPI_WORKITEM_DELETE this might help you to cancel ( Assuming that Cancelling means Deleting the workitem...
    Note : to make use of all the above FM you need to have the workitem ID, Will you be able to determine the exact workitem id?
    for more :
    Now you can find more FM regarding the workitem by simple search in SE37 Txn by using the term SAP_WAPI_*.

  • I'm trying to make a AUTO slide show. I can select all the other actions like mouse clicks etc. but

    I'm trying to make a AUTO slide show. I can select all the other actions like mouse clicks etc. but ON load will not work.
    PLEASE HELP>
    I do not know how to reload/reinstall "ADOBE" golive default actions. I'm using golive cs mac version and "ON LOAD" action. I can't select it when creating a golive action.....It converts it or something to a rollover..
    How can I reistall basic adobe actions???
    Is it a bug???
    Is it a known issue???
    Do I need something??
    Am I missing something???
    Thanks a bunch..
    Kev

    In article <[email protected]>,
    [email protected] wrote:
    > I do not know how to insert the auto slideshowaction as a head action item.
    > The steps.
    > Can you explain how to do it?
    I just remembered I have a couple of screen snaps online to explain how
    it's done:
    1. place your base image and name it in the inspector
    2. from the smart objects palette grab the head action item, the one
    with a question mark in its upper, green half - the 2nd one from the
    left. Drop that into the pages head section.
    3. in the inspector set the action to run OnLoad and select the base
    image that you named in the first step and set the other parameters.
    This was done in the days of GL6, but not much had changed in GL CS.
    Anyway you might also refer to GL's online help. It describes how to set
    up all the actions that ship with GL.
    Cheers Martin

  • Any Way To Perform A Recorded Action Like In Photoshop?

    Basically, I want to make an html page that contains one image...very simple  I want to make 144 of these pages though.  So, I am wondering if there is a way to kind of like create an action like in Photoshop where I can record the steps of doing it one time and then have Dreamweaver repeat this 144 times upon playback.  Anyone know if there is a way?  Thank you.

    You can create Commands from the History Panel.
    1) Open History Panel (Shift+F10)
    2) Select steps or group of steps (Shift or Ctrl+click).
    3) Right click and Save As Command.
    4) Saved Commands are displayed in the Commands menu for future use.
    Commands are useful for things you do often but they are not a substitute for DWTemplates or dynamically populated site pages.  When a site is bigger than 50 pages, you should be thinking dynamic instead of static.
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists
    http://alt-web.com/
    http://twitter.com/altweb

  • OS X 10.8: Actions like "about this mac", "force quit", "shut down" don't work at all (no response).

    I just updated to OS X 10.8 and everything works good except those actions like "about this mac", "force quit", "shut down" not working (from apple logo left upper corner). There is no response at all after clicking on those actions. Anyone has the same issue?

    You are not alone! I have been trying to find a work around since I updated to 10.8.
    the only way to reboot my system is by cold booting.
    cmd-alt-esc doesn't work
    restart/shutdown/switch user doesn't respond
    I'm going to try and reinstall 10.8. If that doesn't work, I'm going back to Lion until this is resolved

  • Trackpad inoperative for second or 2 after actions like delete...

    Often, the trackpad won't move the cursor for a second or two after certain actions, like deleting a file in Finder or an object in other programs. Other occasions too, but don't recall exactly. It is enough to be annoying.
    I've removed unnecessary startup items and such. One thing I have yet to try is a safe boot or log in with my other, Admin account.
    Anyone else seen this? Found a cause?
    My 500MHz Pismo with 10.3.9 doesn't even have this issue, and my MBP setup was largely imported from it (although I've updated the add-ons where available).

    I've disabled add-ins I don't need, but still have this problem. Anyone else?

  • I want to use the full windows 10 and customize it to see how i like it but i need to activate windows

    I want to use the full windows 10 enterprize and customize it to see how i like it but i need to activate windows 

    Hi,
    Windows 10 full version has not been released at this moment, as mentioned in the first reply, you can use the Windows 10 Technicla Preview, a product key is not required for this software, you can get latest news by subscribing
    Windows IT Pro Insider
    Yolanda Zhu
    TechNet Community Support

  • HT5129 I have multiple iPhoto albums, so this move is pushing thousands of pictures to each library. Wh doesn't this come with a "No, Thanks!" option since I've ALREADY ensured the MobileMe albums were captured? I've never seen Apple force an action like

    I have multiple iPhoto albums, so this move is pushing thousands of pictures to each library. Why doesn't this come with a "No, Thanks!" option since I've ALREADY ensured the MobileMe albums were captured? I've never seen Apple force an action like this!
    Worse - According to http://support.apple.com/kb/TS4328, "photos you published to MobileMe from your library may be moved from their original events into a new event called "From MobileMe"." - so the forced move has probably scrambled my events in every library. The 'fix'? Search for matching photos and if not found, copy and paste into the desired event. It will take DAYS for me to recover from this undesired and ill-considered forced action.

    Load your backup from just before this and when you launch iPhoto click on learn more. Go back to iPhoto and in the iPhoto preferences remove all references to MM and do likewise in the system preferences
    LN

Maybe you are looking for

  • How to permanently delete voice memos from iPhone 4s?

    As you can see, I have over 387 voice memos somewhere on my phone, and I want them permanently deleted. I've deleted the voice memos through the voice memos app, and these appear to be all of the deleted voice memos. I tried deleted the voice memos p

  • Problem connecting to internet

    Hi, Just bought a macbook air and am having trouble connecting to wireless internet. It can detect and connect to the network, but when i try and use safari, it says "you are not connected to the internet". Have tried network diagnostics to no avail

  • Sync problems with Gmail Calendar

    Hi, got my new Z10 and I´m very happy with it. My problem is that the sync with my google calendar works only partially. Sometimes all dates are displayed, in the next moment all of them are gone.  I also tried the instruction from this forum for set

  • Qosmio G30-E10: Display resolution switches from 1920x1200 to 1024x768

    Hello, Qosmio G30-E10 Display resolution switches sometimes from 1920x1200 (my default) to 1024x768 after returning from Standby or Hibernation i run Vista Ultimate, newest Display Driver from Toshiba Download Area. This doesn't happened any time, bu

  • Can't get scrollbars to appear

    My program creates a maze. The user can display the maze as ASCII characters or as 2D graphics. In both version, the maze renders perfectly. However, when the maze is too large... For the ASCII characters version, scrollbars appear automatically, and