Assigning an instance to someone else

Hi All
Assume there are two roles "Employee" and "Manager" and four participants say E1, E2, E3 and M1
E1,E2,E3 have Employee role
M1 has Manager role
Suppose there are two instances I1 and I2 assigned to E1.
Now E1 goes on leave or leaves the company. M1 decides to take those instances from E1's queue and assign them to E2 or E3.
How can we achieve this?
Thanks
Satinder

Hi Satinder,
You're right. My answer was underwhelming (using the Process Administration tool).
Here's an approach to reassigning a batch of instances from one participant. You'll often run into problems reassigning instances because either the Interactive activity where the instance is located does not have its "Assignable" property checked or the supervisor does not have the role assigned. This logic overcomes both of these shortcomings.
1) place this logic inside a Global Interactive activity in a role. This role should only be assigned to people who you want to be able to reassign instances from one participant to another.
2) Add a new participant "AUTOCLIENT" and assign it to the new role
3) Add a new Grab activity called "GrabAutomatic" (see the logic below) and define its property as "From all / To all". If you have a method for the Grab, you won't need the "on ie as Exception" catch block.
4) the "input" statement is just so you can see an example working from this logic. Replace this with your own UI.
Although this reassigns ALL of the instances assigned to a specific participant, you could use the search filter to return a list of instances and then let the supervisor pick which ones should be reassigned.
fromPart as String
toPart as String
bp as BusinessProcess
input "Name of the person to reassign from: " : fromPart,
      "Name of the person to reassign to: " : toPart
    using title = "title",
          buttons = ["Ok", "Cancel"]
    returning selectedButton = selection
do     
    instF as InstanceFilter = InstanceFilter()
    instances as Fuego.Papi.Instance[]
    instanceDescription as String
    connectTo bp
        using url = Fuego.Server.directoryURL,
              user = "AUTOCLIENT",
              password = "P",
              process = "/" + processName
    logMessage "next is prc id"
    create(instF, processService : bp.processService)
     instF.searchScope = SearchScope(participantScope : ParticipantScope.ALL,
          statusScope : StatusScope.ONLY_INPROCESS)
    addAttributeTo(instF, variable : VarDefinition.PARTICIPANT_ID, comparator : IS, value : fromPart)
    instances = getInstancesByFilter(bp, filter : instF)
    logMessage "instances" using severity = DEBUG
    for each inst in instances do
       logMessage "Found it: " + inst.id
       do
       logMessage "Select: " + inst.selected
       if inst.selected then
          logMessage "instance selected"
              unSelect inst
       end
       logMessage "instance selected"
       reasign(inst, participant : toPart)
       logMessage "assigned it to " + toPart
       // Throws exception if activity was not assignable
       on e as Exception
          logMessage "Exception: ->" + e.message
          description as String = String(getVar(inst, var : "PREDEFINE_DESCRIPTION"))
          logMessage "Trying grab for " + description
          // determine where activity was before it was grabbed
          backToActivity as String
          backToActivity = inst.activityId
          do
                grab inst
                     using grabActivity = "GrabAutomatic"
                logMessage "Grabbed Instance Status: " + inst.grabbed
                    using severity = DEBUG
                 do
                    runTask inst using activity = "GrabAutomatic"
                 on ie as Exception
                    // exception that occurs if there is no logic inside Grab
                 end
                 logMessage "Ran Grab " + inst.grabbed
                    using severity = DEBUG
                   route inst
                      using activity = backToActivity
                 logMessage "Routed back"
                     using severity = DEBUG
                  reasign(inst, participant : toPart)
                  logMessage "reassigned it to " + toPart
           on e1 as Exception
              logMessage "Exception w/i exception: " + e.message
              errors as String
              errors = errors + "Instance: " + description + " could not be reassigned\n\n"
              logMessage "Errors: " + errors    
           end
       end
    end
on exit
    disconnectFrom bp
endHope this helps,
Dan

Similar Messages

  • Manager wants to assign his duties to someone else in CWB

    we have a big issue here .
    In our organization some managers wants to assign his/her duties to other managers lets say acting managers .Because managers may be travelling so the acting managers should be able to allocate compensation for the managers .the acting manager should not need to be the direct reports of managers .So for example if a manager is travelling someone in HR should be able to allocate compensation to manager's direct employees and his/her direct employees.
    i thought that 'Reassign An Employee' function would work but it isnt seem to be working .
    Any help in this regard will be highly appreciated.
    Thanks in advance

    Hi Ravi
    1. There is nothing like a manager configured separately in weblogic console. Its like this. Even Manager is also a User, just another user. The link is like this. Each User will have standard properties like firstName, lastName, Department, dateOfBirth, phoneNumber, Email etc etc. They also have a attribute like manager and the value of this is just reference to another user. I hope you got the point.
    2. So, in Weblogic console, say you create 2 users: weblogic1, weblogic2, weblogic3. And you can assign some basic properties for each one of them like firstName, lastName etc. For weblogic1, assign manager as weblogic2. For weblogic2 assign manager as weblogic3 etc.
    3. Now behind the screens in Workflow, SOA, when you run user.getManager() and if user is weblogic2, the value will come automatically as weblogic2. And it goes on. You do not have to do any programming for this. The workflow will use LDAP APIs to get the value for each standard property if they are named using standards like firstName=givenName, lastName=sn, emailId=mail etc etc. These are all standard AD object properties for Users, Groups. By the way, most of these applies to Groups also in addition to Users.
    Now, the real trick is, when you create users in weblogic, you can specify firstname, lastname, mail etc. But to specify manager, for now, use this workaround given in below post. Before you run any samples or explore SOA/BPM, first create some testuser accounts in default weblogic embedded ldap using demo community seed app (servlet). You can open this EAR, and then WAR and extract .xml file and edit to add any stuff you want.
    The below link should give you more idea:
    Re: Realm is not populated for BPM app (See my reply)
    Re: Seed Demo Community Failes
    Thanks
    Ravi Jegga

  • I am totally frustrated by the fact that now i have gone to iCloud and after a few synchs, my contacts are all mixed up with the wrong information.  For instance, my email and phone number comes up under someone else's name (a thousand contacts)

    I am totally frustrated by the fact that now i have gone to iCloud and after a few synchs, my contacts are all mixed up with the wrong information.  For instance, my email and phone number comes up under someone else's name (a thousand contacts).  I dont know how to repair this.  what a nightmare

    An icloud account is designed to be used by just one user.  If you have given your ID or set up your account on someone else's device, then their data will be mingled with your or worse.

  • Someone else's phone number used to be assigned to an iPhone

    I am an iPhone user and I am attempting to send text messages to someone who has an Android phone.
    The messages are not being received by that person.  Apparently the receiving phone number was previously assigned to an iPhone, and my outbound message is being erroneously sent as an 'iMessage' even though the intended recipient does not have an iPhone.
    This means that someone else -- whom I do not know -- is receiving these messages.
    AT&T - the other person's carrier - has not been helpful so far.
    The problem isn't with my phone - it's working fine - it's with the interaction between AT&T and this other person's iPhone.
    How can we get this resolved?

    AT&T can't do anything other than assign a new phone number to the individual with the phone. They can't disable the iMessage activation that's tied to the number.
    Did this person have an iPhone, then get rid of it, or did they just get a new number that happens to have been tied to iMessage previously by someone with an iPhone? That seems unlikely...

  • Can I see if someone else has accessed my account?

    Im writing this out for a second time because I lost the first one. Long story short I have a friend who knows loadsof my passwords including skype, I am cool with it and I dont really want to change them. But I am kind of paranoid about them accessing my messages like skype and email and facebook and wanted to know if skype tells you if someone else has logged into your account from a different IP or something or if someone is logged in at the same time as you on another computer and sending messages and stuff. Like Facebook tells you when you log in if someone has been on your account from another ip address.
    Thank you.

    Hi, RoHamster, and welcome to the Community,
    To check if your Skype account is signed on simultaneously on another device (where, not who is using your account), type this chat command in any open instant message chat:
    /showplaces
    Lists other instances where this Skype name is currently signed in.
    To force a sign-out, type this chat command:
    /remotelogout
    Sign out all other instances except the current one. This will also stop push notifications on all other instances.
    From a safety and security standpoint, I would strongly recommend you reconsider allowing anyone to have a list of your account passwords.  I recommend you start changing all of them, and the sooner, the better.
    Regards,
    Elaine
    Was your question answered? Please click on the Accept as a Solution link so everyone can quickly find what works! Like a post or want to say, "Thank You" - ?? Click on the Kudos button!
    Trustworthy information: Brian Krebs: 3 Basic Rules for Online Safety and Consumer Reports: Guide to Internet Security Online Safety Tip: Change your passwords often!

  • Start a workflow for a list item that was created by someone else

    What settings do I need to change so that I can start a workflow for a list item created by another user?
    I have a SharePoint 2013 workflow (let's call it LSR Status Workflow) that is associated with a list (called
    LSR List). When a user creates an item in the LSR List, it automatically starts the
    LSR Status Workflow. That is what I wanted, but sometimes I make changes to the workflow (via SharePoint designer) and then I would want to terminate the existing workflows that are running and restart them.
    When I try to start a workflow for anyone other than a list item that I created, I get the following error:
    Retrying last request. Next attempt scheduled in less than one minute. Details of last request: HTTP NotFound to https://publishing.web.company.com/sites/mysite/_vti_bin/client.svc/web/lists/getbyid(guid'1f844b8f-19aa-4587-bcc2-dfb7085f36b5')/Items(31)
    Correlation Id: 8efc5304-f0a3-90f6-8ece-6875bf811869 Instance Id:
    60c83aae-5c25-4ee8-9c85-c64958ba701e
    Then when the workflow is finally suspended after it keeps retrying, it reports the following error:
    RequestorId: 8efc5304-f0a3-90f6-0000-000000000000. Details: An unhandled
    exception occurred during the execution of the workflow instance.
    Exception details: System.ApplicationException: HTTP 404
    {"Transfer-Encoding":["chunked"],"X-SharePointHealthScore":["0"],"SPClientServiceRequestDuration":["36"],"SPRequestGuid":["8efc5304-f0a3-90f6-9bbd-d18d4d90af1b"],"request-id":["8efc5304-f0a3-90f6-9bbd-d18d4d90af1b"],"X-FRAME-OPTIONS":["SAMEORIGIN"],"MicrosoftSharePointTeamServices":["15.0.0.4551"],"X-Content-Type-Options":["nosniff"],"X-MS-InvokeApp":["1;
    RequireReadOnly"],"Cache-Control":["max-age=0, private"],"Date":["Tue,
    10 Feb 2015 22:36:44
    GMT"],"Set-Cookie":["BIGipServerpublishing-blv-80-pool=2825582466.20480.0000;
    path=/"],"Server":["Microsoft-IIS/7.5"],"X-AspNet-Version":["4.0.30319"],"X-Powered-By":["ASP.NET"]}
    at
    Microsoft.Activities.Hosting.Runtime.Subroutine.SubroutineChild.Execute(CodeActivityContext
    context) at
    System.Activities.CodeActivity.InternalExecute(ActivityInstance
    instance, ActivityExecutor executor, BookmarkManager bookmarkManager) at
    System.Activities.Runtime.ActivityExecutor.ExecuteActivityWorkItem.ExecuteBody(ActivityExecutor
    executor, BookmarkManager bookmarkManager, Location resultLocation)
    If I created the list item, I can stop it and restart it without any problems, but this is not the case for list items created by someone else.
    What settings do I need to change so that I can start a workflow for a list item created by another user? I am the owner of the SharePoint site and am able to make changes to permissions if needed.

    You don't need to re-do the fields. If you create a new version of the PDF
    file just open the old one and use the Replace Pages command to insert the
    pages from the new version over the old ones. This will give you a new
    version of the file, with the existing form fields still in tact. Of
    course, you might need to adjust their location and/or size, but at least
    you won't have to start all over again...
    On Thu, Jan 22, 2015 at 11:59 PM, Laura Holancin <[email protected]>

  • Excel file save error: Someone else is working in file right now. Please try again later.

    When trying to save a modified Excel file, which has been opened from a network share, our users are receiving the following message:
    Someone else is working in "\\domain.com\users\username\Document.xls" right now. Please try again later.
    The clients that have been affected are Windows 7 clients, and the DFS share is being served from a Windows 2012 server. I have already confirmed that DFS replication has not been enabled, so it isn't trying to lock files for replication. I have also disabled
    any real-time scanning that is occurring on the client to make sure that the AV software wasn't locking the files. I did notice when viewing the list of Open Files from the server's Computer Management console that when a users experiences this issue the file
    appears to be opened 4 times. Three times it shows that it was opened in Read mode and the 4th instance shows an Open Mode of Write. Typically, a file which is working correctly should just show one instance with the Open Mode of Read+Write. None of these
    open instances are temporary files preceded with a ~.
    Any thoughts?

    Hi,
    Does the issue occur in other operation system? Which Office version are you using? Have you ever tried to test with word document, PPT file or txt file?
    Based on your description, the issue may be caused by the same file open multiple time in computer management on SQL server. The user probably has User Access Control (UAC) enabled on the machine and it is not letting him overwrite the existing
    copy of the file because she does not have it open in administrator mode. UAC will block overwriting (saving) the existing file without Administrative privileges and it will automatically open the save as dialog so you can save with a different name and
    if you click save without changing the name at the point, it tries to save as a new file over the existing file and it can't because the file is open.
    I recommend you check the user's permission (Which showed in Computer Management console) and end the Excel file instance in the task manager of the user's client.
    Also, we may try the workaround: Save it to local drive(like drive c:) and then copy it to DFS.
    Thanks
    George Zhao
    Forum Support
    Come back and mark the replies as answers if they help and unmark them if they provide no help.
    If you have any feedback on our support, please click "[email protected]"

  • Online number already used by someone else

    Hello, I am in New Zealand. I purchased an online number and when I did a test call, I realised it is assigned to someone else who previously used skype but has now transferred it to another SIP service. Can anyone help?

    Let me guess, no one answered to you? I have the same problem, no answer....

  • "The remote speaker ... is currently being used by someone else."

    I hope someone can tell me the preferred way to get passed this message in respect to connecting to ATV speakers via iTunes on the computer.
    I want to use multiple speakers via iTunes in my computer.
    But when I try to connect to the speakers assigned to the ATV, I get the above "The remote speaker [name] is currently being used by someone else" message.
    What do I need to do (in the ATV) to make the speakers accessible when this happens?
    Message was edited by: bighulawood

    have you tried the obvious things first like restarting both the appletv and itunes ?

  • Bought Skype Number, but goes to someone else?

    I just got assigned a skype number, and I sent an SMS to it to verify it was working.  Instead of receiving it somewhere in my Skype account, someone responds asking who I am.  
    Apparently Skype sold me a phone number that's in use by someone else already?  What the hell, and how do I resolve this?

    Hi, Aeturnus, and welcome to the Community,
    Skype Numbers cannot receive SMS messages ...
    For problems with your Skype Number, please contact Skype customer service for assistance.  Here is a link to the instruction on how to contact Skype Customer Service via their secure portal: Contact Customer Service
    As you know you intend to contact Customer Service, skip past Step 2 of the instruction where several articles from the FAQ library will appear for you to review, and proceed to Step 3, Continue Support Request (the "button" appears at the lower right corner of the website page). You may also skip past in Step 4 where you will be referred back here to the Community; no need to do this as the Community is where you started.
    Regards,
    Elaine
    Was your question answered? Please click on the Accept as a Solution link so everyone can quickly find what works! Like a post or want to say, "Thank You" - ?? Click on the Kudos button!
    Trustworthy information: Brian Krebs: 3 Basic Rules for Online Safety and Consumer Reports: Guide to Internet Security Online Safety Tip: Change your passwords often!

  • Remote speakers in use by someone else

    I have a Linksys WRT54G router, and 2 airport express. I have set up a WDS network with the linksys as the main router. I have the DD-WRT v23 firmware for my linksys. The network is working fine (ie the green lights are on the airport express). My computer is a Mac Mini Dual core. All firmware and software is up to date.
    I can stream music to both airport express. However, every once and a while iTunes will stop playing music spontaneously, and then give a message that "Remote speaker is in use by someone else". This is easy to remedy, I just have to Pick "computer", start music playing on the computer, and then repick the remote speakers and they start up. However this is really annoying if you are trying to listen to music.
    Does anyone know what the real cause of this is? My network is setup correctly. The Apple support document 303125 address this issue but really just tells you to setup your network correctly (which I think mine is).
    Could the problem occur when the lease runs out on an IP address and something gets reassigned by the DHCP (ie the Mac mini goes from 192.168.1.107 to 192.168.1.102) and things get confused? I am suspicous this maybe the cause but I don't know enough about networking to figure it out.
    Thanks for any help.

    Assign static addresses to the Airport Express base stations.
    iFelix

  • It seems my iCloud email address is shared by someone else. I am getting their emails, and hate to think they are getting mine. How can I check the exclusivity of the iCloud email address?

    I am receiving email belonging to someone else. It appears that the iCloud email address I was allocated is used by someone else, and I hate to think my email is being received by them. What's the way to have Apple iCloud check and see that only one recipient gets an iCloud email address? Thanks, John

    This is not a hacked account issue.  It seems that this a common issue for many... Apple Mail Engineers, Please Do Something!!!  With each iteration of Apple's cloud services, the domain changed. i.e., @mac.com, @me.com and now @icloud.com.  It seems Apple's original plan or thought was to let you own the account name across all domains. So, [email protected] will also have the option use the newer @me.com and @icloud.com accounts at the same time (why?).  With millions of devices being activated around the world, it seems some already established accounts like [email protected] were allowed to be activated as new accounts under [email protected] or [email protected] by other new iCloud users.  I'm having the same problem with my email account and my son's email account.  In both cases, the second user is based in Europe (we are in the USA).  I've set all my devices to strictly use the [email protected] account.  In iCloud settings, I see the option to also use the @me.com and @icloud.com addresses.  From time to time, I get  emails sent to the [email protected]  This is very nerve racking because you don't want to get caught with your pants down or feel that someone other than the NSA is watching your email traffic.  We can only hope Apple knows about this and has a way to differentiate accounts via another authentication key assigned to each of your devices.  Good luck guys.

  • IP address - someone else using same IP address

    While using the internet I had a pop up window stating that someone else was using the same IP address and I was now disconnected from the internet. I don't have access to the router as it is shared in my building. Does anyone know if I can change my IP address to something different and what do i change it to?

    Have you rebooted?  If you get your IP assigned automatically this should prompt the DHCP (IP) server to give you a new address if you're machine is setup to automatically get an IP.

  • Assign an instance within a screenflow

    Hi,
    I would like to assign an instance to the first participant, who "opens" a task, meaning who opens the screenflow of the current activity. And he or she should be still assigned even the screen might be cancelled. So usually, I know, you can assign using Participant.next, but is that working also within a screenflow? And I guess it will not work in case of a cancel, because if someone cancels the screen it would rollback all changes, right? Is there any other solution?
    Regards
    Matthias

    Sure you've tried about everything and know you're not going to like this answer.
    You'd think you could assign the participant.next in the Interactive activity's outgoing argument mappings but this will not work (sorry to remind you of a frustrating 10 minutes you recently had).
    The only way you can assign the instance to the participant who opened the screenflow is to have it leave the Interactive activity and then flow to an Automatic activity (where participant.next is set) and then flow back into the Interactive activity.
    Here are the steps to do this in case you need them:
    1. Create a new String instance variable in your screenflow called "personInSF".
    2. Inside an automatic task immediately after the Begin in the Screenflow, set this variable to "Participant.name".
    3. Map this instance variable to an outgoing argument variable that exits the screenflow. Make sure that the Interactive activity has a variable mapped to this outgoing argument variable containing the participant's name (you'll need it in step 7 below).
    4. Capture the fact that the user hit the "Cancel" button. Do not set the action predefined variable to CANCEL like you normally would. Just set some instance variable (call it "cancelFlag") inside the screenflow that goes out of the screenflow to "cancel" to flag that the button was clicked. Make sure that this variable is set to some value other than null as it leaves the Screenflow (e.g. either "cancel" or "ok").
    5. (this is the part you're not going to like) In the process (not the screenflow), add an Automatic activity. Have your interactive activity flow to this Automatic activity using a conditional transition. The logic needs to detect if the cancel button was clicked so add this logic to your conditional transition "cancelFlag = "cancel".
    6. Have this Automatic activity flow back to the Interactive activity.
    7. In the logic in the Automatic activity, set "participant.next" to the name of the participant you passed out of the Interactive activity in step 3. Know you know this, but use logic like this:
    {code}participant.next = participant.find(name : personInSf){code}
    Dan

  • How do I replace someone else's Mac ID with my own? Bought iPhone second hand. Previous owner re-set the phone but his ICloud account stayed on now my phone. He uses his macID on his new iPhone now?? Any ideas, as this issue is blocking my access to iTune

    How do I replace someone else's Mac ID with my own?
    Bought iPhone second hand on TradeMe.
    Previous owner re-set the phone but his ICloud account stayed on now my phone. He uses his AppleID on his new iPhone now and, understandably, does not want to give me his password. Any ideas?? Please.
    This issue is blocking my access to iTunes and any other file from my home computer. It keeps on telling me that I have to autorise my computer to pass on files, yet, it seems, for all this to happen, I need to get logged in through the phone's Apple ID. This of course is different to my one on my computer - and I have no password for it.
    This phone is not stolen!! I payed still a fair bit for it. Am still in contact with the previous owner. He doesn't know how to fix the problem either.
    Would appreciate any suggestion ????
    Thanks
    SamSings

    Settings>general>resets>erase all content and settings.
    That will put it back to its out of the box state. Set it up with your own apple Id.

Maybe you are looking for

  • Report Subscription fails, shows 'success', specific scenario

    I have a report that will run successfully except for one very specific scenario.  Any help or suggestions tracking down this issue would be helpful. The report is named ProjectsWeeklyReport.rdl and takes a single parameter of a specific user's login

  • Subtotal in alv

    hi experts,                i want to display subtotal in the alv output using control break statement, without using alv functionality and layout. my code is given below, how can i add subtotal field and display them in alv , *& Report  Y_VARUNSHARMA

  • Data should be in non readable format in payload-- SXMB_MONI

    Hi All; I have a scenario where I need to send MT103 file to bank with digital signature and this configuration is done and working good.I have a new requirement, that the payload data/content should not be in readable format in SXMB_MONI. This is wh

  • Condition type value rounding

    Hi Experts I want to know about rounding of decimal in PO conditions. We have customised condition type like ZFRE in % and it is found that when PO is created i see  that ZFRE value is rounded i.e suppose if value is coming as 3.97 then the system ta

  • How to uninstall and reinstall network drivers on a Samsung 580?

    Hi. During the summer, I got a new laptop. It was all fine and dandy when I was at home, using a dial up connection, but when I went to school, I immediately had problems. Neither the cable connection nor the wireless worked. I've got the wireless to