Task Re Assignment Exception

Hi.
Here is the scenario
I hava a task named Charge Fix.
The Charge Fix task is assigned to client A.
Client A executes the task using the worklist but does not mark it as done.
The Charge Fix task is reassigned to Client B.
When Client B attempts to execute the task I get the following excpetion:
"User Client A has not been assigned task Charge Fix ."
Any help will be welcomed

i got the same problem and I'm interested in an answer too.
My Workaround was to have a secon AtomicBoolean-Var
public AtomicBoolean cancel = new AtomicBoolean(false);
if (cancel.get()) {
    return "Cancelled at " + System.currentTimeMillis();
}this code works but it cannot be the answer.

Similar Messages

  • Assign Task is assigned to a specific user but the she can not see it in her ToDo list

    Hello,
    I am currently working on the first process (after upgraded it to LC ES 2 with SP2) and try to test by routing it to the next person but the user could not see it in her ToDo list nor receive any Task email.
    I checked for the process in the AdminUI and see that it is currently assign to that user and also check the email configuration but do not see any thing wrong. I also recorded it and see it is assign to that person. I then try to re-assign it to a different person but it still does not show in the next person's ToDo list. So I go to the log file and see there is an error as below:
    00000078 UserServiceIm W com.adobe.idp.taskmanager.dsc.userservicev2.UserServiceImpl createTaskFromDialogProperties WARNING!!! You have not specified any Form TLO/DCI settings, and have not specified any input data.  This task will be created without any form.Process: 1515F/1515F, Step Name: AssignTask0
    I tried to search for the error above but could not find any thing reference to it.
    Can any one please advise on how to fix it so the user can see it in their ToDo list when the task is assigned to them.
    Thanks,
    Han Dao

    Hi
    It sounds like you have not selected anything on the Presentation & Data tab of the Workspace Startpoint/User Service.
    You need to specify:
    Your Asset (the form you want to present to the user)
    An associated Action Profile (tells the server how you want the form rendered...typically it is set to Default which uses the Render PDF Form process)
    The variable to hold your data(typically an xml variable)
    Make sure these are set.
    Diana

  • [QM] How to create an inspection lot with task list assigned?

    Hello, everyone.
    I know, the similar questions have been asked plenty of times, but I am still unable to find a suitable receipe of the inspection lot creation. My goal is to create an inspection lot programmatically and be able to record its results using, e.g., BAPI_INSPOPER_RECORDRESULTS.
    Creating a lot does not appear to be a big problem. I just call the following FMs:
    QPL1_INITIALIZE
    QPL1_INSPECTION_LOT_CREATE
    QPL1_UPDATE_MEMORY
    QPL1_INSPECTION_LOTS_POSTING
    BAPI_TRANSACTION_COMMIT
    As a result, I have a new shiny inspectin lot, but it comes with statuses "CRTD" and "CHCR". I do specify PLNAL and PLNNR fields values for the QALS structure which is passed to QPL1_INSPECTION_LOT_CREATE, but that does not seem to have any effect. When I call BAPI_INSPOPER_RECORDRESULTS later (result values and inspection points come from another lot which is used as a template), it reports of beging unable to find characteristics for the inspection operations (error E026).
    Does anyone know which of the QPL1_INSPECTION_LOT_CREATE parameters affect task list assignment besides PLNAL and PLNR? Or maybe there is a special FM which associates a task list with an inspection lot?
    Thank you in advance.

    Hi Samuel,
    You can get create an Agent as a Task by using the following steps:
    1. Go to Customizing --> EHS --> Industrial Hygiene & safety --> Risk Assessment --> Specify Agent Types
    2. Click on "TASK' Agent type and click on Details icon (CtrlShiftF2)
    3. In the "Only EHS-IHS" drop down, Select "No"
    4. Save the entry
    5. Now try creating an Agent [CBIH92] and you can create an Agent as a Task.
    Hope it Helps,
    Raghu

  • Automatic Tasks are assigning to the user even the Vacation rule Enabled

    Hi Experts,
    I have enabled a Vacation rule in bpm/workspace.
    But I can see all the tasks assigned in the inbox for that user.
    Then I have enabled the Customized rule as the vacation rule and tried to reassign the tasks to an another user.
    That is also not happening. Tasks are assigning to the other user.
    Our ECM version is 11.1.1.6.0
    Went through all the documentations and couldn't find the solution..
    Thanks,
    Nir

    Hi Nir,
    When you said
    But I can see all the tasks assigned in the inbox for that user.
    do you mean the instances that were previously assigned to the user are still there in the user's queue?
    Vacation rules let you reassign or delegate tasks assigned to a user once the vacation period begins.  If work items are already in their queue before the vacation rule goes into effect, they remain in the person's queue.  It's up to the user to reassign or delegate the existing work item instances that were already in their queue.
    New instances that arrive once the rule goes into effect however, should be automatically reassigned (or delegated depending on the vacation rule's radio button selected) to the other person.
    Dan Atwood

  • Task Auto-Assignment in PJM (turning it off)

    My client is looking to turn off Task Auto-Assignment in Project Manufacturing after a restructure of the Project WBS / FBS. It will no longer be needed.
    I was wondering if anyone has done this. What are the steps? What are the concerns of doing this (data corruption, conversion, etc...)? Release 11.5.10.2
    I do know that one step in order to disable task auto-assignment is to change Project Control in Project Organization Parameters from Project to Task. Anything I am missing? When I do this and then try to assign the Project and Task to the Job (work order) it will not save. It gives me an error (Error: Task Auto Assignment Rules do not exist for the Project Assigned to this job). The work around is to turn task auto-assignment back on (Project Control field), assign some rule to the project in Project Parameters, and then turn the task auto-asignment back off. This then allows me to "save" the project and task to the Job (work order), but I would never be able to roll this out in a Production environment.
    Please help. Thanks in advance!
    Andy

    Hi
    I haven't tested it, but may suggest some considerations.
    All inventory and WIP transactions need to be costed and interfaced to Projects by cost collector before you change the setup of the project control in the organization.
    If you use Order Management, you might need to insert task number to any open sale order line.
    If you have open requisitions and purchase orders, they also need to get task number on the distribution lines. That is true even if the items were already received but not yet billed.
    On hand items in Inventory project locators, need to be transferred into project and tasks locators.
    Any planned work order, even if not yet released, need to get the task number.
    Based on the quantity of existing locators, jobs, POs and sale order, you might want to consider if it would not be easier to setup a new inventory organization with project and task control, and then move all PJM activity from existing organization into the new one.
    Dina

  • Which tables should i refer to know "A task is assigned to which employee?"

    Hi
    Which tables should i refer to know "A task is assigned to which employee?"
    I think pa_tasks.task_manager_person_id refers to the employee who is assigned a task. Please correct me if im wrong.
    Regards
    Vibhuti

    Vibhuti,
    pa_tasks.task_manager_person_id should not necessary be the person whom the task is assigned.
    You can try using following query:
    select distinct c.task_id TASK_ID,b.alias RESOURCE_NAME,c.task_name TASK_NAME
    from pa_resource_assignments a,
    pa_resource_list_members b,
    pa_tasks c
    where a.resource_list_member_id = b.resource_list_member_id
    and a.task_id = c.task_id
    and a.project_id = :project_id;
    --Sumit                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • Start a Task Process assigns tasks in the reverse order

    Hello,
    I am using SPD2013 and Sharepoint 2013 Online.
    I am using 'Start a Task Process' using  people from the Person or Group Lookup column that allows multiple selections.
    For some reason, the 'Start a Task Process' action assigns the participants in the reverse order. I am currently assigning the participants using...
    'Workflow Lookup for a User'
    Data Source: Current Item
    Field from Source: the Person/Group Lookup
    Return Field as: Display Name; Semicolon Delimited.
    The problem is not isolated to just one workflow, but all workflows in the sharepoint site. I tried deleting the workflow and remaking it but I am still having the same problem.
    The tasks are assigned as expected if I don't use 'Workflow lookup for a User."
    Has anyone run into this issue before? Thanks for all of your help.

    Hi CalvinKwon,
    How did you set the participants when the workflow work as expect? Set users one by one?
    Are you using “Serial(one at a time)” or “Parallel(all at once)” for assigning tasks?
    I did a test and found that:
    If I used “Serial(one at a time)” , the order of assigning task is random regardless of using “'Workflow lookup for a User” or one by one.
    If I used “Parallel(all at once)”, the order of assigning task is right regardless of using “'Workflow lookup for a User” or one by one.
    I could not reproduce this issue on my SharePoint On-premise, it seems to only happen on SharePoint Online.
    Please test with “Start Approval Process” action using SharePoint 2010 platform.
    And as this issue is about SharePoint Online, I suggest you create a new thread on Office 365 forum. The reason why we recommend posting appropriately is you will get the most qualified pool of respondents, and other partners who read the forums regularly
    can either share their knowledge or learn from your interaction with us. Thank you for your understanding.
    Office 365 forum:
    http://community.office365.com/en-us/f/default.aspx
    Best Regards,
    Wendy
    Wendy Li
    TechNet Community Support

  • Execute SQL Task: Cannot assign value to the variable

    DECLARE
    @PartitionDate varchar(8),
    @Date int
    SELECT
    @PartitionDate = MAX(PartitionDate)
    FROM PartitionLog (NOLOCK)
    SELECT
    @Date = MIN(DateKey)
    FROM DimDate WHERE CAST(DateKey as varchar(8)) > @PartitionDate
    IF NOT CONVERT(varchar(8),GETDATE(),112) = @PartitionDate
    SELECT @PartitionDate = CAST(DateKey as varchar(8))
    FROM DimDate (NOLOCK)
    WHERE DateKey = @Date
    SELECT @PartitionDate AS PartitionDate ,
    'IISDW_' + @PartitionDate AS PartitionName
    GO
    I have the above SQL stmt in the excute SQL task and declared 2 variable "PartitionDate" and "PartitionName" in the Package, the RESULT SET I hav given as "Single Row" and when I run the ETL I get the error as 
    [Execute SQL Task] Error: An error occurred while assigning a value to variable "PartitionDate": "Exception from HRESULT: 0xC0015005".

    Does your package variable datatype match the datatype of your parameter?
    Is your Package variable assigned to the parameter in the task editor?
    And does the parameter name in the task editor match the parameter names in your stored procedure?

  • Replication of scheduled date (of phase or task) into assigned WBS-element

    Hi Experts,
    One of my customers raised the following question:
    Is there a possibility to transfer/replicate the scheduled dates of a phase or task into the assigned WBS-element of the financial integration scenario (PS)??
    I know, this is not included in SAP standard functionality... but maybe there is a possibilty with a BADI etc.
    Thanks for any hints, comments etc.
    Best regards,
    Jochen

    Hi Jochen,
    the scheduled dates can neve be tranferred, because they are determined during scheduling. What may be possible is to set or map the scheduled date sto the basic dates of  WBS.  Ther is no standard Badi to extend it. The communication between cProject -> PS is done via Bapi calls.
    GCC_PS_PROJECT_MANAGER:
    CALL FUNCTION 'BAPI_BUS2001_CREATE'                                          
          EXPORTING                                                                  
            I_PROJECT_DEFINITION       = LS_PROJECT_DEFINITION                       
          TABLES                                                                     
            ET_RETURN                  = LT_PRO_DEF_RETURN                           
          EXTENSIONIN                =                                             
          EXTENSIONOUT               =                                             
          EXCEPTIONS                                                                               
    error_message = 1                                      "t9         
                  others        = 2.                                     "t9         
    CALL FUNCTION 'BAPI_BUS2054_CREATE_MULTI'                                    
          EXPORTING                                                                  
            I_PROJECT_DEFINITION       = gv_project_definition                       
          TABLES                                                                     
            IT_WBS_ELEMENT             = LT_WBS_ELEMENT                              
            ET_RETURN                  = LT_RETURN                                   
          EXTENSIONIN                =                                             
          EXTENSIONOUT               =                                             
          EXCEPTIONS                                                                               
    error_message = 1                                      "t9         
                  others        = 2.                                     "t9         
    Kind regards,
    Zhenbo

  • Best way to create tasks and assign to sharepoint groups

    Hi everyone, I have a custom list which contains newsletter info that is to be seen by around 400 groups (they are stores) and then I need them to mark each list item as 'completed'
    I have been trying to figure out the best way to do this and decided to keep the custom list and somehow link it to a task for each item in the list. We have nintex so was thinking of creating a workflow to create a separate task for each group (store) so
    they can mark it as completed.
    Is this the best way to go about it or am I completely off track?
    Basically all I need is a list which contains around 30 items and around 400 groups (stores) which contain users (store staff) to be able to mark items on the list as completed so it recognises that each store has completed each task.
    Thanks

    Hi  ,
    According to your description, you want to find the best way for creating tasks for 30 list items and assigning the task to around 400 groups.
    For the workflow, it is heavy  that  you need to create around 12000 (30*400) tasks .  In my opinion, the best way is to do with a custom timer job. For more information, you can refer to the
    blog:
    http://www.splessons.com/2013/12/create-a-timer-job-in-sharepoint-2013/
    Thanks,
    Eric
    Forum Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support,
    contact [email protected]
    Eric Tao
    TechNet Community Support

  • In human task, dynamically assign group doesn't work

    Oracle SOA 11.1.1.4
    My bpel process invokes a human task.
    On the human task Assignment tab, I assigned 3 users (by name), 1 group (by expression).
    The group is configured in LDAP
    When I tested the bpel process, I entered the group and other data required.
    From the worklist app, I see the task listed. It is assigned to the 3 users, but not the dynamically passed-in group.
    From the Audit trail, I saw all data I entered (include the group). Everything seems correct, but I still can’t make the dynamically-pass-group work.
    If I assign the group by name in human task, it works fine.
    The problem is: dynamically assign group doesn't work.
    Please kindly advice.

    Yes, it is possible assign a group as participant of some human task, passing the group name as parameter.
    I have tested just now.
    It works pretty well in SOA 11.1.1.4 (BPEL or BPM).
    Make sure add a data parameter in your human task definition and pass a valid group name to it.
    At the Assignment tab, in the participants' list, add a group, data type by expression, and set the value to the right xpath expression to the corresponding parameter.
    For example: /task:task/task:payload/task:group
    If it is not working look the SOA log files, probably you'll find some information about the error there. Maybe there is some problem with your jazn.com configuration.
    You can also test if there is something wrong related to the group name, trying to transfer some task to the same group by the worklist.

  • Use of Separated Variable in Optional Tasks- Null Pointer Exception

    Hi,
    I'm facing a strange issue with Object Category as 'Separated'. In our Process the main object(objLaunch) is big in size so we have decided to make object category to be separated. Process flow's each and every interactive activity has an optional task which is a Screen Flow. When we have changed the object(objLaunch) category to be 'Separated' we are getting below error when we had accessed the optional task. Please note that we are facing this issue in
    PROD environment where as in studio we are not facing this issue. The same object is present in the main process flow as well as in the screenflow(optional task). This object is passed as an input argument to the screenflow from the main process. In the screenflow as well as the main process, we have made the object as separated, though in the screenflow, upon saving and reopening the category still displays as Normal.
    Task failed. Caused by: Task '1' in activity '/SNIAuthorization#Default-1.0/Interactive[ConfirmLAZApproval]' for instance '/SNIAuthorization#Default-1.0/33774/0' could not be successfully executed. The task failed while executing method 'confirmLAZApprovalViewPEDIN'. Caused by: The task could not be successfully executed. Reason: 'java.lang.NullPointerException'. Caused by: java.lang.NullPointerException fuego.web.exception.WapiTaskFailedException: Task failed. at fuego.web.exception.WapiExceptionFactory.create(WapiExceptionFactory.java:209) at fuego.web.papi.DefaultErrorHandler.handleException(DefaultErrorHandler.java:49) at fuego.web.papi.TaskExecutor.execute(TaskExecutor.java:127) at fuego.workspace.servlet.ExecutorServlet.doAction(ExecutorServlet.java:117) at fuego.workspace.servlet.BaseServlet.doPost(BaseServlet.java:228) at fuego.workspace.servlet.BaseServlet.doGet(BaseServlet.java:219) at javax.servlet.http.HttpServlet.service(HttpServlet.java:743) at fuego.workspace.servlet.AuthenticatedServlet.service(AuthenticatedServlet.java:61) at javax.servlet.http.HttpServlet.service(HttpServlet.java:856) at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227) at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125) at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:283) at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42) at fuego.web.filter.SingleThreadPerSessionFilter.doFilter(SingleThreadPerSessionFilter.java:64) at fuego.web.filter.BaseFilter.doFilter(BaseFilter.java:63) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42) at fuego.web.filter.CharsetFilter.doFilter(CharsetFilter.java:48) at fuego.web.filter.BaseFilter.doFilter(BaseFilter.java:63) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42) at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3242) at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321) at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121) at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2010) at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:1916) at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1366) at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209) at weblogic.work.ExecuteThread.run(ExecuteThread.java:181) Caused by: fuego.papi.exception.TaskFailedException: Task '1' in activity '/SNIAuthorization#Default-1.0/Interactive[ConfirmLAZApproval]' for instance '/SNIAuthorization#Default-1.0/33774/0' could not be successfully executed. The task failed while executing method 'confirmLAZApprovalViewPEDIN'. at weblogic.rmi.internal.ServerRequest.sendReceive(ServerRequest.java:205) at weblogic.rmi.cluster.ClusterableRemoteRef.invoke(ClusterableRemoteRef.java:335) at weblogic.rmi.cluster.ClusterableRemoteRef.invoke(ClusterableRemoteRef.java:252) at fuego.ejbengine.EJBProcessControl_1zamnl_EOImpl_923_WLStub.runTask(Unknown Source) at fuego.papi.impl.j2ee.EJBProcessControlInterfaceWrapper.runTask(EJBProcessControlInterfaceWrapper.java:2169) at sun.reflect.GeneratedMethodAccessor776.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at fuego.papi.impl.AbstractProcessControlHandler.invokeInternal(AbstractProcessControlHandler.java:72) at fuego.papi.impl.j2ee.EJBProcessControlHandler.doInvoke(EJBProcessControlHandler.java:116) at fuego.papi.impl.j2ee.EJBProcessControlHandler.invoke(EJBProcessControlHandler.java:70) at $Proxy145.runTask(Unknown Source) at sun.reflect.GeneratedMethodAccessor775.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at fuego.lang.JavaClass.invokeMethod(JavaClass.java:1410) at fuego.lang.JavaObject.invoke(JavaObject.java:227) at fuego.papi.impl.j2ee.EJBExecution.next(EJBExecution.java:189) at fuego.web.execution.InteractiveExecution.process(InteractiveExecution.java:177) at fuego.web.execution.impl.WebInteractiveExecution.process(WebInteractiveExecution.java:54) at fuego.web.execution.InteractiveExecution.process(InteractiveExecution.java:223) at fuego.web.papi.TaskExecutor.runInstanceTask(TaskExecutor.java:490) at fuego.web.papi.TaskExecutor.execute(TaskExecutor.java:98) ... 25 more Caused by: fuego.lang.ComponentExecutionException: The task could not be successfully executed. Reason: 'java.lang.NullPointerException'. at fuego.server.execution.EngineExecutionContext.invokeMethodAsCil(EngineExecutionContext.java:1000) at fuego.server.execution.EngineExecutionContext.runCil(EngineExecutionContext.java:1175) at fuego.server.execution.TaskExecution.invoke(TaskExecution.java:428) at fuego.server.execution.InteractiveNormalCilExecution.invoke(InteractiveNormalCilExecution.java:430) at fuego.server.execution.TaskExecution.executeCIL(TaskExecution.java:554) at fuego.server.execution.TaskExecution.executeTask(TaskExecution.java:738) at fuego.server.execution.TaskExecution.executeTask(TaskExecution.java:698) at fuego.server.execution.TaskExecution.executeTask(TaskExecution.java:178) at fuego.server.execution.microactivity.InteractiveMicroActivity.executeNormalCil(InteractiveMicroActivity.java:489) at fuego.server.execution.microactivity.InteractiveMicroActivity.executeItem(InteractiveMicroActivity.java:442) at fuego.server.execution.microactivity.InteractiveMicroActivity.execute(InteractiveMicroActivity.java:100) at fuego.server.AbstractProcessBean$45.execute(AbstractProcessBean.java:2961) at fuego.server.execution.DefaultEngineExecution$AtomicExecutionTA.runTransaction(DefaultEngineExecution.java:304) at fuego.transaction.TransactionAction.startBaseTransaction(TransactionAction.java:470) at fuego.transaction.TransactionAction.startTransaction(TransactionAction.java:551) at fuego.transaction.TransactionAction.start(TransactionAction.java:212) at fuego.server.execution.DefaultEngineExecution.executeImmediate(DefaultEngineExecution.java:123) at fuego.server.execution.EngineExecution.executeImmediate(EngineExecution.java:66) at fuego.server.AbstractProcessBean.runTask(AbstractProcessBean.java:2965) at fuego.ejbengine.EJBProcessControlAdapter.runTask(EJBProcessControlAdapter.java:1144) at fuego.ejbengine.EJBProcessControl_1zamnl_EOImpl.runTask(EJBProcessControl_1zamnl_EOImpl.java:3019) at fuego.ejbengine.EJBProcessControl_1zamnl_EOImpl_WLSkel.invoke(Unknown Source) at weblogic.rmi.internal.ServerRequest.sendReceive(ServerRequest.java:174) ... 47 more Caused by: java.lang.NullPointerException at xobject.Fuego__AutoGen__Screenflows__.__ViewPED.automatic(__ViewPED.xcdl:9) at xobject.Fuego__AutoGen__Screenflows__.__ViewPED.Automatic_Invocator(__ViewPED.xcdl:7) at xobject.Fuego__AutoGen__Screenflows__.__ViewPED.Begin_Router(__ViewPED.xcdl:6) at xobject.Fuego__AutoGen__Screenflows__.__ViewPED.Begin_Invocator(__ViewPED.xcdl:10) at PG.SNIAuthorization.Default_1_0.Instance.CIL_confirmLAZApprovalViewPEDIN(Instance.xcdl:3) at PG.SNIAuthorization.Default_1_0.Instance.CIL_confirmLAZApprovalViewPEDIN(Instance.xcdl) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at fuego.server.execution.EngineExecutionContext.invokeMethodAsCil(EngineExecutionContext.java:991) at fuego.server.execution.EngineExecutionContext.runCil(EngineExecutionContext.java:1175) at fuego.server.execution.TaskExecution.invoke(TaskExecution.java:428) at fuego.server.execution.InteractiveNormalCilExecution.invoke(InteractiveNormalCilExecution.java:430) at fuego.server.execution.TaskExecution.executeCIL(TaskExecution.java:554) at fuego.server.execution.TaskExecution.executeTask(TaskExecution.java:738) at fuego.server.execution.TaskExecution.executeTask(TaskExecution.java:698) at fuego.server.execution.TaskExecution.executeTask(TaskExecution.java:178) at fuego.server.execution.microactivity.InteractiveMicroActivity.executeNormalCil(InteractiveMicroActivity.java:489) at fuego.server.execution.microactivity.InteractiveMicroActivity.executeItem(InteractiveMicroActivity.java:442) at fuego.server.execution.microactivity.InteractiveMicroActivity.execute(InteractiveMicroActivity.java:100) at fuego.server.AbstractProcessBean$45.execute(AbstractProcessBean.java:2961) at fuego.server.execution.DefaultEngineExecution$AtomicExecutionTA.runTransaction(DefaultEngineExecution.java:304) at fuego.transaction.TransactionAction.startBaseTransaction(TransactionAction.java:470) at fuego.transaction.TransactionAction.startTransaction(TransactionAction.java:551) at fuego.transaction.TransactionAction.start(TransactionAction.java:212) at fuego.server.execution.DefaultEngineExecution.executeImmediate(DefaultEngineExecution.java:123) at fuego.server.execution.EngineExecution.executeImmediate(EngineExecution.java:66) at fuego.server.AbstractProcessBean.runTask(AbstractProcessBean.java:2965) at fuego.ejbengine.EJBProcessControlAdapter.runTask(EJBProcessControlAdapter.java:1144)
    Is it not possible to use separated variables in screenflows which will be accessed as optional tasks? The same screenflow forms part of the main process as well. This activity works fine even after the object was made separated. The error is encountered only in the optional task.
    Please could you analyze the mentioned issue and let us know the reason for the error.
    Anticipating for your response.
    Thanks in advance
    ~Kavitha A

    Please could you respond.
    Regards
    ~Kavitha A
    Edited by: user10230886 on Dec 1, 2009 10:29 PM

  • Assigning Exceptions in BPM Integration Process

    hello,
    Does any body have an idea regarding how to assign an exception in the control step.
    I want to raise an exception in the BPM
    Thanks in advance

    Hi
    If You still have the question unanswered then:
    1) In a surrounding block you must define names for exceptions.
    2) In the control step you can then pick one of defined exceptions...
    3) For the surrounding block you must add "Exception Branch" from block context menu and assign it to the same exception.
    Then You can handle the exception there.
    Best,

  • Custom Schedule Task ( Null Pointer Exception)

    Hi All,
    I had written Custom Schedule task: Below is the code
    When i run the Schedule task it is failing throwing Null Pointer Exception. the code is not able to fetch userId ,passwordex and passwordwar values in execute method. please help me
    package oracle.iam.sample.notification;
    import java.sql.Date;
    import java.util.ArrayList;
    import java.util.HashMap;
    import java.util.HashSet;
    import java.util.List;
    import java.util.Set;
    import oracle.iam.identity.exception.NoSuchUserException;
    import oracle.iam.identity.exception.UserLookupException;
    import oracle.iam.identity.usermgmt.api.UserManager;
    import oracle.iam.identity.usermgmt.vo.User;
    import oracle.iam.notification.api.NotificationService;
    import oracle.iam.notification.exception.EventException;
    import oracle.iam.notification.exception.MultipleTemplateException;
    import oracle.iam.notification.exception.NotificationException;
    import oracle.iam.notification.exception.NotificationResolverNotFoundException;
    import oracle.iam.notification.exception.TemplateNotFoundException;
    import oracle.iam.notification.exception.UnresolvedNotificationDataException;
    import oracle.iam.notification.exception.UserDetailsNotFoundException;
    import oracle.iam.notification.vo.NotificationEvent;
    import oracle.iam.platform.Platform;
    import oracle.iam.platform.authz.exception.AccessDeniedException;
    import oracle.iam.scheduler.vo.TaskSupport;
    import static oracle.iam.identity.usermgmt.api.UserManagerConstants.AttributeName.MANAGER_KEY;
    import static oracle.iam.identity.usermgmt.api.UserManagerConstants.AttributeName.USER_LOGIN;
    import oracle.iam.platform.kernel.vo.Orchestration;
    public class PasswordExpiry extends TaskSupport {
    public PasswordExpiry() {
    super();
    public void execute(HashMap taskParameters) {
    System.out.println("inside the Execute methode");
    System.out.println("Schedule task Arguments "+taskParameters);
    String userId = (String)taskParameters.get("User Login");
    System.out.println("===========input=============== "+userId);
    String passwordex=taskParameters.get("usr_pwd_expire_date").toString();
    System.out.println("===========input=============== "+passwordex);
    String passwordwar=taskParameters.get("usr_pwd_warn_date").toString();
    System.out.println("===========input=============== "+passwordwar);
    try {
    System.out.println("inside the Try block");
    NotificationService notService = Platform.getService(NotificationService.class);
    NotificationEvent eventToSend = this.createNotificationEvent(userId, passwordex,passwordwar);
    notService.notify(eventToSend);
    } catch (Exception e) {
    e.printStackTrace();
    private NotificationEvent createNotificationEvent(String userKey, String passwordex,
    String passwordwar) throws NoSuchUserException, UserLookupException,
    AccessDeniedException {
    NotificationEvent event = new NotificationEvent();
    //get user IDs to whom notification is to be sent and set it in the
    //event object being created
    String[] receiverUserIds= getRecipientUserIds(userKey);
    event.setUserIds(receiverUserIds);
    //Set template name to be used to send notification for this event
    event.setTemplateName("PasswordWarningNotificationTemplate");
    //Setting senderId as null here and hence default sender ID would
    //get picked up
    event.setSender(null);
    //Create a map with key value pair for the parameters declared at time
    //of configuring notification event
    HashMap<String, Object> map = new HashMap<String, Object>();
    map.put("usr_key", userKey);
    map.put("usr_pwd_warn_date", passwordex);
    map.put("usr_pwd_expire_date",passwordwar);
    event.setParams(map);
    return event;
    private String[] getRecipientUserIds(String userKey) throws NoSuchUserException,
    UserLookupException, AccessDeniedException {
    UserManager usrMgr = Platform.getService(UserManager.class);
    User user = null;
    String userId = null;
    Set<String> userRetAttrs = new HashSet<String>();
    //Sending notification to both the user and his/her manager
    userRetAttrs.add(MANAGER_KEY.getId());
    userRetAttrs.add(USER_LOGIN.getId());
    User manager = null;
    String managerId = null;
    String managerKey = null;
    Set<String> managerRetAttrs = new HashSet<String>();
    managerRetAttrs.add(USER_LOGIN.getId());
    //Retrieving User ID
    user = usrMgr.getDetails(userKey, userRetAttrs, false);
    userId = user.getAttribute(USER_LOGIN.getId()).toString();
    List<String> userIds = new ArrayList<String>();
    userIds.add(userId);
    if (user.getAttribute(MANAGER_KEY.getId()) != null) {
    managerKey = user.getAttribute(MANAGER_KEY.getId()).toString();
    manager = usrMgr.getDetails(managerKey, managerRetAttrs, false);
    //Retrieving User's Manager ID
    managerId = manager.getAttribute(USER_LOGIN.getId()).toString();
    userIds.add(managerId);
    //To return String[] than an Object array
    String[] recipientIDs = userIds.toArray(new String[0]);
    return recipientIDs;
    * Call notification Engine passing an event object to it
    * @param event
    * @throws NotificationException
    private void sendNotification(NotificationEvent event) throws NotificationException {
    try {
    //Call notify method of NotificationService to pass on the event
    //to notification engine
    NotificationService notificationService = Platform.getService(
    NotificationService.class);
    notificationService.notify(event);
    } catch (EventException e) {
    throw new NotificationException(e.getMessage(), e.getCause());
    } catch (UnresolvedNotificationDataException e) {
    throw new NotificationException(e.getMessage(), e.getCause());
    } catch (TemplateNotFoundException e) {
    throw new NotificationException(e.getMessage(), e.getCause());
    } catch (MultipleTemplateException e) {
    throw new NotificationException(e.getMessage(), e.getCause());
    } catch (NotificationResolverNotFoundException e) {
    throw new NotificationException(e.getMessage(), e.getCause());
    } catch (UserDetailsNotFoundException e) {
    throw new NotificationException(e.getMessage(), e.getCause());
    } catch (NotificationException e){
    throw e;
    public HashMap getAttributes() {
    return null;
    public void setAttributes() {}
    Thank you

    The task parameters passed into a scheduled job are the parameters defined for the scheduled task definition in the metadata xml and configured in the scheduled job. They are not the data of an individual user as you seem to be trying to get. In a scheduled task I would expect some sort of search for users to operate on.

  • Workflow Task Agent Assignment for PO Rel

    Hello;
    Can someone tell me how the system can be set to forward a work item for the person responsible for PO release, meaning based on the department who own the goods the system should find the person who's the approver of that department.
    Thanks
    Ibou

    Hi ,
    Try assigning a new Agent Rule in the Task TS20000166.
    You will have to create a custom rule using transaction PFAC. Choose option "F - Agent dertermination function to be executed" and assign a new Z function module which will determine your agent.
    You can refer to function module ME_REL_GET_RESPONSIBLE while creating your own function module.
    Cheers!!!
    Gautam

Maybe you are looking for