Dynamic users for FYI task

Hi,
I have a FYI at the last stage in my human task flow with help of
call CreateResourceList I can determine the desire user for sending the task (FYI) to him.
the problem is that based on some data in the payload some time I want to send the FYI to 1 user and in some cases I want to send the FYI to 2 users.
How can I do that? the CreateResourceList can send the task to only 1 user.
Thanks.

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

Similar Messages

  • 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

  • Setting dynamic user in Approval task

    While setting the user at runtime for approval task, I have created a Task Assignment adapter and associate the adapter in the assignment tab for the approval task. I have used reassignApprovalTasksToUser method of tcRequestOperationsIntf class. I have passed the task instance id as well as the user key. From the system console I am able to find that the adapter is invoked.
    I have suppress the standard approval process using tcComplete task adapter.
    When the requestor make the request and goto approval details page the system is showing the request is pending to the re-assigned user however when I login into the console using re-assigned user credential no request is pending in his work busket. What I observed, the request is pending in xelsysadm work busket.
    Would appreciate if someone let me know the step which I am missing.

    Yes, I suppressed the "Approve" Task in standard approval process.
    Can you please let me know how to mapped the key type in the task assignment adapter.
    I have created two variables in the adapter and mapped those two variables from the assignment tab of the approval task.
    I have seen there are two more variables in the Adapters, "Adapter return value for Key type" and "Adapter return value for Key" and these two adapter variables are mapped as "Set at runtime".
    How do I map these two variable?
    No I do not find any exception with regard to execution of the task assignment adapter in the log.

  • Accessing payload for FYI task

    Guys,
    We have a BPM application. There is an FYI task in the applicaiton.
    When am fetching the payload from the FYI task, it doesnt contain the payload which am looking for. Other normal human task works as expected. Only FYI task is not working.
    Element taskDetails = task.getPayloadAsElement(); --- task is an instance of oracle.bpel.services.workflow.task.model.Task
    NodeList payloadNodeList = taskDetails.getElementsByTagName("MyPayload");
    But 'payloadNodeList' is empty (doesnt contain any nodes).
    Not sure why its not working. Do i miss anything here?

    Not sure if this helps, but I think we have the same architecture: a custom ADF tasklist instead of the default Workspace.
    From Oracle BPM we use the SystemMessageAttributes to map certain key elements for our ADF tasklist.
    While doing this it helps the ADF developers so they don't have to parse through the payload of the tasks to get this information for a worklist tasks overview.
    Hope it helps. J@n

  • Current User for a task Item

    Hi,
    I have created a sharepoint designer workflow for a document library and task is assigned to sharepoint group.
    I want to update a column in document library with the user's name who approved the task from sharepoint group.
    I tried with "Workflow Context:CurrentUser" but I didn't get correct value.
    Can anybody help me out to resolve this issue?
    Any help would be appreciated.
    Thank you.
    AA.

    Can you try using Current Item: ModifiedBy?
    Refer to the following post
    http://sharepoint.stackexchange.com/questions/83452/who-accepted-rejected-the-task
    --Cheers

  • Dynamic User for Receiver RFC adapter

    Hi,
    I have a soap to rfc scenario. Any solution to use PI login user as RFC user to connect SAP backend?
    Thanks

    YOu might want to know about the concept of principal propagation.
    http://help.sap.com/saphelp_nw04/helpdata/en/45/0f16bef65c7249e10000000a155369/frameset.htm
    https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/808d3048-638c-2a10-35a6-faa48e50ad59
    https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/1a65a5a7-0d01-0010-1b9d-df02d5666791
    Regards,
    Ravi

  • Dynamic Mail trigger for IT0019 Tasks Reminder.

    Hi PA Experts:
    I have a requirement to trigger a dynamic mail (for the Tasks in IT0019) to the Personnel Administrator to remind the Tasks.
    ex: A mail to be triggered by the system to remind the Administrator as and when the date arrives to followup with the various tasks (such as Probation Confirmation, Appraisal Due, Contract Expiry etc..). Here the mail to be sent to the SAP Inbox and Outlook as well.
    Pls suggest how to configure.
    Thanks and regards,
    Srikanth Reddy

    Hi Srikanth/Shiva/Hems,
    hope u r doing good.
    Configuring Mail Triggering in M0001 Feature is pretty straight forward.
    T001P-MOLGA='10'
    T0000-MASSN='10'
    M0001
    For this to work, Maintain
    Feature M0001
    SBWP - here u ll configure mail addressess , clik the distribution list button.
    RCNEW - here u ll give the value which u configured in SBWP Tcode(M- for mail, V- Distribution list).
    hope u try and it works, pls do update.
    Regards
    Rohit.S

  • There is no task in UWL when i assign expression as responsible for a task

    Hi @,
    I create a simple process BPM on Process Composer, there is a task and a service to start this process.
    When i assign specify user for this task (e.x : ABC), i start process using the service, it's ok, there is a task is assigned to ABC.
    But when i use expression to assign for the task, the value of this expression will be mapped with data i input when start process using the started service. There is no task on portal.
    Please give me some advices,
    Thanks

    Sorry, here is trace message:
    An error occurred while executing transition START_TASKFLOW_Review_Timesheet(Token_0_P03_Timesheet_Process_0660a0655e09d2a43f917ec81589b112(Instance_0_P03_Timesheet_Process_0660a0655e09d2a43f917ec81589b112(null,null,null,false),1), Instance_0_P03_Timesheet_Process_0660a0655e09d2a43f917ec81589b112(null,null,null,false), Context_1_DO_PersonInfoType_0660a0655e09d2a43f917ec81589b112(Instance_0_P03_Timesheet_Process_0660a0655e09d2a43f917ec81589b112(null,null,null,false),Scope_16_New_Pool_0_0660a0655e09d2a43f917ec81589b112(Instance_0_P03_Timesheet_Process_0660a0655e09d2a43f917ec81589b112(null,null,null,false)),1,true), View_4_Default_ExcludedOwners_0660a0655e09d2a43f917ec81589b112(Instance_0_P03_Timesheet_Process_0660a0655e09d2a43f917ec81589b112(null,null,null,false),Scope_6_New_Pool_0_0660a0655e09d2a43f917ec81589b112(Instance_0_P03_Timesheet_Process_0660a0655e09d2a43f917ec81589b112(null,null,null,false)),0,false), View_5_Default_PotentialOwners_0660a0655e09d2a43f917ec81589b112(Instance_0_P03_Timesheet_Process_0660a0655e09d2a43f917ec81589b112(null,null,null,false),Scope_8_New_Pool_0_0660a0655e09d2a43f917ec81589b112(Instance_0_P03_Timesheet_Process_0660a0655e09d2a43f917ec81589b112(null,null,null,false)),0,false)): com.sap.glx.core.kernel.api.TransitionRollbackException: Exception during prepare, rolling back
    at com.sap.glx.core.kernel.mmtx.AbstractTransactionBase.rollback(AbstractTransactionBase.java:538)
    at com.sap.glx.core.kernel.mmtx.AbstractTransaction.do_prepare(AbstractTransaction.java:174)
    at com.sap.glx.core.kernel.mmtx.AbstractTransaction.commit(AbstractTransaction.java:77)
    at com.sap.glx.core.kernel.execution.LeaderWorkerPool$Follower.run(LeaderWorkerPool.java:120)
    at com.sap.glx.core.resource.impl.common.WorkWrapper.run(WorkWrapper.java:58)
    at com.sap.glx.core.resource.impl.j2ee.ServiceUserManager$ServiceUserImpersonator$1.run(ServiceUserManager.java:116)
    at java.security.AccessController.doPrivileged(Native Method)
    at javax.security.auth.Subject.doAs(Subject.java:337)
    at com.sap.glx.core.resource.impl.j2ee.ServiceUserManager$ServiceUserImpersonator.run(ServiceUserManager.java:114)
    at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
    at java.security.AccessController.doPrivileged(Native Method)
    at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:169)
    at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:266)
    Caused by: com.sap.glx.core.kernel.api.TransitionRollbackException: Exception during prepare, rolling back
    at com.sap.glx.core.kernel.mmtx.AbstractTransactionBase.rollback(AbstractTransactionBase.java:538)
    at com.sap.glx.core.kernel.mmtx.AbstractTransaction.do_prepare(AbstractTransaction.java:174)
    at com.sap.glx.core.kernel.mmtx.AbstractTransaction.commit(AbstractTransaction.java:77)
    at com.sap.glx.core.kernel.mmtx.PrimaryTransaction.inPrepare(PrimaryTransaction.java:88)
    at com.sap.glx.core.kernel.mmtx.AbstractTransaction.do_prepare(AbstractTransaction.java:172)
    ... 11 more
    Caused by: com.sap.glx.core.kernel.api.TransitionRollbackException: Exception during prepare, rolling back
    at com.sap.glx.core.kernel.mmtx.AbstractTransactionBase.rollback(AbstractTransactionBase.java:538)
    at com.sap.glx.core.kernel.mmtx.AbstractTransaction.do_prepare(AbstractTransaction.java:174)
    at com.sap.glx.core.kernel.mmtx.AbstractTransaction.commit(AbstractTransaction.java:77)
    at com.sap.glx.core.kernel.mmtx.DirectNestedTransaction.inPrepare(DirectNestedTransaction.java:58)
    at com.sap.glx.core.kernel.mmtx.AbstractTransaction.do_prepare(AbstractTransaction.java:172)
    ... 14 more
    Caused by: com.sap.glx.core.kernel.api.CancelTransitionException: java.lang.IllegalArgumentException: Identifier '$principalId' invalid
    at com.sap.glx.core.internaladapter.ExceptionAdapter.raiseException(ExceptionAdapter.java:540)
    at com.sap.glx.core.internaladapter.ExceptionAdapter.raiseException(ExceptionAdapter.java:511)
    at com.sap.glx.core.internaladapter.Transformer$ClassRegistry$MapperClassManager$MapperClassHandler$MapperInvocationHandler.createTransitionException(Transformer.java:2033)
    at com.sap.glx.core.internaladapter.Transformer$ClassRegistry$MapperClassManager$MapperClassHandler$MapperInvocationHandler.invoke(Transformer.java:2053)
    at com.sap.glx.core.internaladapter.Transformer$TransformerInvocationHandler.invoke(Transformer.java:576)
    at com.sap.glx.core.dock.impl.DockObjectImpl.invokeMethod(DockObjectImpl.java:463)
    at com.sap.glx.core.kernel.trigger.config.Script$MethodInvocation.execute(Script.java:247)
    at com.sap.glx.core.kernel.trigger.config.Script.execute(Script.java:670)
    at com.sap.glx.core.kernel.execution.transition.ScriptTransition.execute(ScriptTransition.java:64)
    at com.sap.glx.core.kernel.execution.transition.Transition.commence(Transition.java:241)
    at com.sap.glx.core.kernel.mmtx.DirectNestedTransaction.inPrepare(DirectNestedTransaction.java:57)
    at com.sap.glx.core.kernel.mmtx.AbstractTransaction.do_prepare(AbstractTransaction.java:172)
    ... 17 more
    Caused by: java.lang.IllegalArgumentException: Identifier '$principalId' invalid
    at com.sap.glx.mapping.execution.implementation.node.PrimitiveNode.readContainer(PrimitiveNode.java:32)
    at com.sap.glx.mapping.execution.implementation.node.PrimitiveNode.readContainer(PrimitiveNode.java:7)
    at com.sap.glx.mapping.execution.implementation.Interpreter$SourceResolver.resolveSourceReference(Interpreter.java:81)
    at com.sap.glx.mapping.execution.implementation.Interpreter$SourceResolver.resolveSourceStep(Interpreter.java:89)
    at com.sap.glx.mapping.execution.implementation.Interpreter$SourceResolver.resolveSource(Interpreter.java:67)
    at com.sap.glx.mapping.execution.implementation.Interpreter$SourceResolver.<init>(Interpreter.java:56)
    at com.sap.glx.mapping.execution.implementation.Interpreter.mapPart(Interpreter.java:145)
    at com.sap.glx.mapping.execution.implementation.Interpreter.mapPart(Interpreter.java:151)
    at com.sap.glx.mapping.execution.implementation.Interpreter.mapPart(Interpreter.java:151)
    at com.sap.glx.mapping.execution.implementation.Interpreter.mapMapping(Interpreter.java:140)
    at com.sap.glx.mapping.execution.implementation.Interpreter.map(Interpreter.java:135)
    at com.sap.glx.core.internaladapter.Transformer$ClassRegistry$MapperClassManager$MapperClassHandler$MapperInvocationHandler.map(Transformer.java:2071)
    at com.sap.glx.core.internaladapter.Transformer$ClassRegistry$MapperClassManager$MapperClassHandler$MapperInvocationHandler.invoke(Transformer.java:2048)
    ... 25 more

  • FYI Tasks and Expiration Policy

    Hi all,
    i try to set an expiration policy for FYI Tasks using the Human Task Editor but it doesn't work where it works for other types.
    can someone confirm that an expiration policy can be set for an FYI task?
    I am using SOA Suite 10.1.3.
    Thanks

    Repost

  • 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?

  • Error editing task sequence: Failed to load dynamic properties for class "SMS_TaskSequence_ApplyWindowsSettingsAction" From XML into WMI

    I've started getting an intermittent error editing my Windows 7 OSD task sequence.  Sometimes I can open the TS to edit, but when I try to apply changes I get the error.  Other times I get the error when trying to open the TS.  If I try again
    right away, I still get the error, but if I wait a few minutes and try again sometimes it will open the TS. 
    The error reads:
    ConfigMgr Error Object:instance of SMS_Extended Status{Description = "Failed to load dynamic properties for class \"SMS_TaskSequence_ApplyWindowsSettingsAction\" from XML into WMI";Error Code = 2147943746;File = "e:\\qfe\\nts\\sms\\siteserver\\sdk_provider\\smsprov\\ssptspackage.cpp";Line = 3454;Operation = "ExecMethod";ParameterInfo = "SMS_TaskSequencePackage";ProviderName = "WinMgmt";StatusCode = 2147749889;}
    Coinciding with this error, I show the following entries in the TaskSequenceProvider.log file: 
    [PID: 7608] Invoking method SMS_TaskSequence.LoadFromXml
    TaskSequenceProvider
    Failed to protect memory buffer, hr=0x80070542
    TaskSequenceProvider
    Failed to load dynamic properties for class "SMS_TaskSequence_ApplyWindowsSettingsAction" from XML into WMI 0x80070542 (2147943746)
    TaskSequenceProvider
    Failed to load node Apply Windows Settings from XML into WMI 0x80070542 (2147943746)
    TaskSequenceProvider
    Failed to load children steps for node "PostInstall" from XML 0x80070542 (2147943746)
    TaskSequenceProvider
    Failed to load children steps for node "Execute Task Sequence" from XML 0x80070542 (2147943746)
    TaskSequenceProvider
    Failed to load children steps for node "" from XML 0x80070542 (2147943746)
    TaskSequenceProvider
    Failed to load XML for the task sequence into WMI 0x80070542 (2147943746)
    TaskSequenceProvider
    [PID: 7608] Done with method SMS_TaskSequence.LoadFromXml
    TaskSequenceProvider
    Setting status complete:  status code = 0x80070542; Failed to load dynamic properties for class "SMS_TaskSequence_ApplyWindowsSettingsAction" from XML into WMI
    TaskSequenceProvider
    I exported the task sequence and checked in "object.xml" for the "ApplyWindowsSettingsAction", to see if there was something odd in the xml, but I don't find anything that jumps out as being wrong.  Here's the section of XML for
    that step.  I've removed identifying info, and replaced it with a generic term in bold.
    <step type="SMS_TaskSequence_ApplyWindowsSettingsAction" name="Apply Windows Settings" description="" runIn="WinPE" successCodeList="0" runFromNet="false"><action>osdwinsettings.exe /config</action><defaultVarList><variable name="OSDLocalAdminPassword" property="AdminPassword"></variable><variable name="OSDComputerName" property="ComputerName">%_SMSTSMachineName%</variable><variable name="OSDProductKey" property="ProductKey"></variable><variable name="OSDRandomAdminPassword" property="RandomAdminPassword">false</variable><variable name="OSDRegisteredOrgName" property="RegisteredOrgName">COMPANY NAME</variable><variable name="OSDRegisteredUserName" property="RegisteredUserName">COMPANY NAME</variable><variable name="OSDServerLicenseConnectionLimit" property="ServerLicenseConnectionLimit">5</variable><variable name="OSDTimeZone" property="TimeZone">Central Standard Time</variable></defaultVarList></step><step type="SMS_TaskSequence_ApplyNetworkSettingsAction" name="Apply Network Settings" description="" runIn="WinPEandFullOS" successCodeList="0" runFromNet="false"><action>osdnetsettings.exe configure</action><defaultVarList><variable name="OSDDomainName" property="DomainName">DOMAIN.COM</variable><variable name="OSDJoinPassword" property="DomainPassword"></variable><variable name="OSDJoinAccount" property="DomainUsername">DOMAIN ACCOUNT</variable><variable name="OSDEnableTCPIPFiltering" property="EnableTCPIPFiltering" hidden="true">false</variable><variable name="OSDNetworkJoinType" property="NetworkJoinType">0</variable><variable name="OSDAdapterCount" property="NumAdapters" hidden="true">0</variable></defaultVarList></step>
    Is there any other log I should check for a clue on this issue?  What could be causing this error?

    Thanks for sharing that!  I tend to save contacting MS support until after I've exhausted other options.  I'm always afraid that I'll spend the $500 to open a case and then it turns out to be something simple that I would have found if I had just
    kept working on it myself a little longer.
    It looks like that link is for an update released in February as KB3023562.  I downloaded and installed it. I'll try opening/editing/saving the task sequence a few times today to see if the issue is resolved.  
    After I had already installed it, I thought to look up that update in configmgr.  The update is listed as superseded by 2 other updates.  The newest of those is KB3046049, which just installed last night with the other March patches, so it's possible
    that I didn't need to install KB3023562 after all.  

  • Dynamic User Group Role for ASA 8 ACS 4 External Windows DB

    1. I've successfully got a Win2003 AD user to authenticate to the ASA via an ACS but the default group settings the dynamic user becomes part of don't get transfered to the user. How do I get the user to adopt the group settings?
    2. ASDM recommends nabling authentication for admin console sessions so you don't ssh into a box then have to login as the enable password which isn't logged. When I check the box for this feature I can ssh to the ASA but my password is denied ASA. How do I keep the user credentials all the way to the privilege exec mode?
    3. Back in the day I could configure the ACS shell, privilege 15, custom attributes cisco-av-pair "priv-lvl-15" to get a user to jump directly to privilege exec mode. This doesn't work now. Is there a different way to do this on ACS v 4?
    Thanks in advance,
    Matt

    Try this:
    aaa authentication enable console
    aaa authorization command
    on ACS go to the user or group that the user is in and go to enable options and click on "Max Privilege for any AAA client" and set it to "15". Then go to the "tacacs+" section on click on "Shell(exec)" and click on "Privilege leve" and enter 15. Then go to the "Shell command authorization set" and set the default to permit any commands not listed. This will get the user into privilege mode. In ASA/Pix it requires command authorization and authentication for enable console. On IOS it requires that you use aaa authentication exec and then the aaa authorization exec/command. This will allow the user to go straight into privilege mode instead of user mode.

  • How do we create user defined Task in OM & Which report we run for the Task

    Hi
    How do we create user defined Task in OM & Which report we run for the Task.
    Regards
    Rajesh

    You can create tasks using PFCT or path: Human resources> Organizational management> Expert mode> Task catalog in Easy access.
    Check this link may be useful for you: http://help.sap.com/saphelp_40b/helpdata/pt/fb/135d89457311d189440000e829fbbd/content.htm

  • Dynamic tabs for the user who is logged in?

    Hi!
    Is it possible to create dynamically tabs for a TemplateTabContainer or JSPTabContainer during the time a user is logged in?
    I know that it is possible for example with the dpadmin command or with the DSAME console but is there another way (for example a programming way)? I don't want to wait for the deployment. Also, it needs to many resources.
    If yes do I have to extend this providers (TemplateTabContainerProvider) or is there a way to access on the right instance and can I use the methods? If yes , then which?
    Any help is very much appreciated!
    Andreas

    Hi,
    Have a look at the following threads.
    USERS CONNECTED
    Re: USERS CONNECTED
    Trace Users Currently Connected to Application
    Trace Users Currently Connected to Application
    Regards,
    Hussein

  • ADF security for dynamic users.

    Hi,
    Am using jdeveloper 11.1.1.6.0.
    In my project i need to use Dynamic users in ADF security.
    UseCase:
    My project is similar to shopping Website. In that i will be having Sign up link which is used to register the users and the users will get the system generated password.
    Is this possible to implement ADF Security here.
    Please give me your valuable suggestions.
    Regards,
    Prasad K T,

    Take a look at the fusion order demo out fod in short.It's available from the jdev home page. Make sure you load the sample for your version
    Timo

Maybe you are looking for

  • Line break in UWL

    Hi All, I have a workflow which gives a workitem in the UWL. I display few variables in the workitem in UWL. All the values in the variables are fine. But the problem is all the variables are coming as continuous text without line breaks. I have give

  • Services formula value in contract release order

    Hi We have a quantity contract with services, the services contain a formula ABC to determine quantity. After selecting the service in the contract release order the full contract quantity is imported resulting in an error message. Is there a specifi

  • Exiting RS_TREE_LIST_DISPLAY to Another LIST-PROCESSING Format

    Hi Experts, I'd like to ask if you have any idea how to exit from the callback_user_command of the FM RS_TREE_LIST_DISPLAY, to call another list-display format? Thanks for suggesting!

  • Editing in iPhoto app

    Hi, I can't seem to figure out how to get certain edits to stick. I can apply an effect, but then when I tap another icon, for example, to change the exposure or colors, my photo reverts back to the original without the first effect I applied. How ca

  • Working on external HD only

    I would like to disconect my internal HD (which is broken) to only boot from the external HD every time. Can I do that? Thanks