Handle to a Task in BPM

Hi active contributors of BPM,
I have a scenario where one of the steps in a process is a human activity. There is a WebDynpro UI corresponding to the task mapped to the human activity, which works well. However, an email with a custom MS Outlook form will be sent to the corresponding owner of the task when task gets generated. The user can respond to the task directly either through the Outlook form itself or using the SAP Portal / UWL. So, I would like to if there are any APIs / interfaces that could be used to trigger the task completion programmaticlly from my code similar to how it happens on click of an WebDynpro UI element mapped with the Complete event.
Any pointers will be highly appreciated.
BR,
Bala

Hi Bala,
As Benny already pointed out it's cruicial for the processes that the users management is built on the repository provided by the UME. If you want to bypass this anyway and want to implement the completion by a service user then you could try splitting up your process into the 'sending part' and the 'receiving part':
'the sending part'
This particular process is responsible for gathering all the needed data (via services, UI input, ...) and finally sends out the mails to the users.
'the receiving part'
Here it is getting a little bit more tricky: You could implement a message driven bean which is waiting for the responses of your users and queues them up for further processing. Then - for each item - it extracts the needed data and starts off a new process instance which could then do the final processing.
Of course one major drawback is that you will lose the 'overall process view' in that case by decoupling the both steps. Nevertheless you could benefit of NW BPM in each of them.
What might be interesting for you are the so called offline forms that have been mentioned in the thread below.
Galaxy Frontends
Galaxy Frontends
Best regards,
Martin

Similar Messages

  • Handling SOAP Fault Message in BPM

    Hello XI SDN'ers,
    I am getting SOAP Fault Message in my SOAP Scenario and I am not aware of Handling that error in my BPM. Could any one tell me, How to handle such error's in BPM?
    Thanks & Regards,
    Satish.

    hi satesh
    using "exception handler" in BPM we can handle the error messages
    regards
    kummari

  • How to handle PSW approval task in project server 2013 through declarative workflow VS 2013

    Hello,
    Plz explain in detail handling PSW approval task in project server 2013 through declarative workflow VS 2013
    bcoz when using am posted on with this error when i try to approve the item
     "This list item  has not been created by the workflow.you cannot apply this content type"
    any help would be appreciated!!!!
    Thanks regards, Vignesh.

    I am also experiencing issues with this.  After the approval task is completed, the Workflow gets cancelled with the following message
    RequestorId: 60d96368-4cb4-b059-8086-604972a92e60. Details: System.Collections.Generic.KeyNotFoundException: The given key was not present in the dictionary. 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)
    All other desired workflow actions work as expected.  Emails are sent, project is moved from stage to stage, however as soon as the workflow approval task is completed, either Approved or Rejected, the Internal Status is changed to Canceled and the
    workflow fails.
    What is interesting is when the Approval task is completed, the approver will receive an email notification that the task was CANCELLED or DELETED....
    not COMPLETED, which is what would be expected.
    Has anyone seen this - any potential resolution?

  • Customization of Human tasks the BPM Worklist App with ADF App

    Hi All,
    We are building a custom ADF application which aims to combine several business process human tasks to a unified interface.
    And how to integrate the Human Task Flow BPM Worklist to my ADF App.
    Otherthan that
    To the BPM Worklist App we want to do customizations also like
    1.Want to customize to apply our own custom skins to customize banner logo, title to the BPM Human Task Flow App.......
    2.And based on the logged in user/role we wanted to restrict the features of the Work List App.
    Say for Example should not provide the Facility to Add New Page if the logged in user is not an Admin, like wise no provision to add or modify or delete the Worklist Views like that...
    How to get control the App based on User/Role
    Any help or pointers would be appreciated!
    I have ADF Experience from projects Using JDeveloper 11.1.1.5.
    But, for me this is the first BPM case.
    Renuka

    Hi Renuka,
    There are basically two ways to create an ADF UI for a BPM Task:
    1. Generate it from the task
    2. Create a ADF Taskflow based on Human Workflow Task
    Since I tell this by heart, I might be slightly wrong in the terms.
    You probably want to try the second option. It is accessible from the "New Gallery". You'll have to provide the Human Task from the BPM project, but then you can build up the ADF Taskflow by your self, based on the customizations of the rest of your application.
    Should not be rocket science for someone with ADF11g experience. Since it is not my dayly job, I need to figure it out every time again ;). But I did it in the past and it wasn't so hard.
    Regards,
    Martien

  • How to create dynamic stages in parallel within Complex Task in BPM..?

    Hi All,
                I have a requirement where in single participant type stages needs to be generated in parallel dynamically based on one collection type complex element.
                InputPayload for HumanTask is as below.
           <v1:WFSteps>
                       <v1:Step Number="1.1">
                          <v1:StepRole>XXXXX</v1:StepRole>
                          <v1:Filter/>
                          <v1:ApprovalPattern>Single</v1:ApprovalPattern>
                          <v1:StepAssigneeList>XXXXX</v1:StepAssigneeList>
                     </v1:Step>
                      <v1:Step Number="1.2">
                          <v1:StepRole>XXXXX</v1:StepRole>
                          <v1:Filter/>
                          <v1:ApprovalPattern>Single</v1:ApprovalPattern>
                          <v1:StepAssigneeList>XXXXX</v1:StepAssigneeList>
                     </v1:Step>
           </v1:WFSteps>
               Also please suggest, how can i update task outcome of the dynamically generated parallel stages..?

    Thanks Dan.
    Thats a good suggestion.
    Can't we do this using Complex Task in BPM (Dynamically generate stages in parallel based on collection)?
    Also can you tell me how to do this "Subprocess activity defined to as "MultiInstance" "Parallel" that uses a collection to dynamically send instances out based on the number of rows in your collection."

  • Handling SOAP Fault messages in BPM

    Hi,
    My scenario is Sync-Async Bridge involving File to SOAP transformation. I have used BPM as 1 file has many records and each record is required to call the web service synchronously.
    In the BPM I have
    Receive ---> Transform (1:n multimapping ) -
    > Block (Par for Each)
    In Block  I have Send Sync step to call Web service . I have an exception branch for the send step for catching Fault message that is sent back from webservice for Application Fault.
    Problem:
    Though the Fault message is sent from web service ,in the BPM  the block goes in error saying : "No exception defined for fault message ".  The Exception brach is not executed.
    Please suggest if anyone has come across such a scenario and solution to this.

    hi satesh
    using "exception handler" in BPM we can handle the error messages
    regards
    kummari

  • Error Handling in JDBC Adaptor - Without BPM

    Hi friends,
    My problem is like this. Scenario is File -> Xi -> JDBC.
    here i didn't used BPM at all.
    My interface is working fine.
    right now i am not doing any error handling for 'Primary key violation, refrential intigrity etc.. '.
    if this type errors encountered i going to adapter monitoring and looking out the issue.
    Now the client requirment is
    whenever this type of errors occured Client should be notified Via email along with error description.
    Is there anyway to do this ?

    Hi Suresh,
    You can setup the Alerting framework of XI to trigger alerts. Alert rules can be set to raise alerts in case of JDBC Adapter Errors.
    Check these links....
    http://help.sap.com/saphelp_nw04/helpdata/en/3f/81023cfa699508e10000000a11402f/frameset.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/80/942f3ffed33d67e10000000a114084/frameset.htm
    Thanks & Regards,
    Renjith
    An addition to what i just said...You have to be on SP14 for this...
    Message was edited by: Renjith Andrews

  • Handling web service error in BPM

    My scenario is get a message from a data base and call web service using that, if web service is available get the response from web service and send it back to data base, incase web service call is unavailable.
    When web service is unavilable Iam getting a fault message back and could not proceed. I have a seperate blco to do web service call, in that I have Synchronous send step in BPM, and selected default system error under Exception.
    My requirment is when SOAP fault occurs I need to send the data back to data base else proceed if web service call is sucessful.

    Looks like we can not handle fault messages in BPM.
    Before I close this thread. just wanted to give little more explanation reg. my scenario.
    Business scenario -  Pull the data from Data base using a Stroed Procedure(this marks the records once it is successful) and call web service using this data. If web service call is success, push the response received from web service to Data Base. If call to web service fails, still push the data which was pulled initially from database back to same location in database.
    Iam using BPM to get the message from Data Base using JDBC sender adapter, once I got the data  Asynchronously into BPM Iam using Synchronous send step to call web service, in the properties section, I have specified request message (abstract asynchronous, ) response message (abstract asynchronous) ,  Receive from - SendContext and selected default option which is ExWebserviceCall for SystemError.
    I have an exception branch for this synchronous send step, which is working good incase of system error.
    This is working good when I tried to testing using invalid URL for target system.  When web service itself is down , in this case  Iam getting SOAP Fault back with HTTP code 500.
    In SXMB_MONI, under error - it is showing as this error is related to application , which I think is application error.
    When this happens my process is not working.
    Edited by: Vamsi on Aug 26, 2010 4:31 PM

  • Exception handling branch not executing in BPM

    Hi all,
    We have a problem with exception handling in BPMs.
    We have created an exception branch in a block and a transformation step in it.  However, the branch doesn't get executed in case of exceptions.
    Any ideas?  Is this a known problem?
    Many thanks,
    Aldo

    Hi VJ,
    The exception name can only be selected from a list.  There is no chance of mistaking/misspelling in there.
    That is fine as it is.  I am quite sure about it.
    Any other ideas?
    I found SAP note 1039330 but we are already on patch 12 and that correction was released on patch 12.
    Thanks, regards,
    Aldo

  • Handling Java Mapping Exception in BPM Transformation step

    Dear SDN members,
    I have developed a File to File scenario using BPM as follows.
    Step 1:
    Sender file adapter picks the file from FTP server and using file content conversion mapped to XML structure.
    Step 2:
    BPM will recieve the XML payload , immediately in the block a transformation step is called with an interface mapping. In the interface mapping a Java mapping will be executed with certain data validations on the XML payload. If found any invalid data is there a suitable excptions will be raised . Here the transformation step should be catch the error and control should be sent to exception block to place the recived file as a error file.
    else if the transformation is executed with out any issues, the file will be placed in success folder.
    But in the transformation step, though java mapping thorwing exceptions, the control not going into exception block, instead it is continuing to next step i.e the file is placing in the success folder.
    Can anybody tell me, how to handle the exceptions raised in java mapping in the BPM transformation step?
    I have refered all the SDN blogs, forums related to this issue, but could not able to find the answer. Please help me?
    Thanks & Regards
    Vijayanand Poreddy

    Hi Abhishek,
    Once the file is picked from FTP server then sent to BPM,
    the BPM steps
    Step1:
    -->Recive
    Step 2:
    Block Starts
       ---Block Start: New Transaction
       ---Block End : New Transaction
       ---Exception : Error
    Step 3 
    Inside the Block
    Transformation Step
       --Interface Mapping: <IM Name>
       -- Check box ticked for Create New Transcation
       -- Exceptions
          --System Error: Error
       --Source Message: Message recieved in Recieve Step (Step 1)
    Step 4:
      --Send
      --Source Maessage: Output message from the Transformation Step
    Block End
    Inserted a Exception Branch for Block
    Steps inside Exception Branch
      -Control
        --Throw Alert
       --Alert Name
    In the above scenario
    The transformation step is not throwing error even my interface mapping going to error. The same transformation step if i place outside the block next to recieve step, then the transformation step is throwing error and BPM stops the process.
    Also, when transformation is inside the block, i have used the exception handling on the send step inside the block. here it is throwing error as the source message payload is empty. because in the preceding transformation step the interface mapping is failed due to which there the target will not be filled. But even though it is not entered into exception block.
    Regards
    Vijayanand Poreddy

  • How to catch and handle soap foult in a BPM process?

    Hi,
    I have a BPM process which calls a webservice in one of its activities. The webservice throws an exception so the response will contain a soap fault element. I defined exception handlers to handle the error but none of the exception handlers are called. How can I catch and handle these types of error?
    The log contains this:
    A component failed while executing activity '/Process1#Default-1.0/Automatic' (BP-method Automatic) over instance '/Process1#Default-1.0/3/0'.
    Details:
    The method 'CIL_automatic' from class 'BEA_Systems__Inc__.Process1.Default_1_0.Instance' could not be successfully executed.
    Caused by: <?xml version="1.0" encoding="UTF-8" ?>
    <MyException faultString="" faultCode="{http://schemas.xmlsoap.org/soap/envelope/}Server"/>
    fuego.lang.ComponentExecutionException: The method 'CIL_automatic' from class 'BEA_Systems__Inc__.Process1.Default_1_0.Instance' could not be successfully executed.
         at fuego.component.ExecutionThreadContext.invokeMethod(ExecutionThreadContext.java:498)
         at fuego.component.ExecutionThreadContext.invokeMethod(ExecutionThreadContext.java:251)
         at fuego.fengine.FEEngineExecutionContext.invokeMethodAsCil(FEEngineExecutionContext.java:214)
         at fuego.server.execution.EngineExecutionContext.runCil(EngineExecutionContext.java:1068)
         at fuego.server.execution.TaskExecution.invoke(TaskExecution.java:389)
         at fuego.server.execution.TaskExecution.executeCIL(TaskExecution.java:481)
         at fuego.server.execution.TaskExecution.executeTask(TaskExecution.java:655)
         at fuego.server.execution.TaskExecution.executeTask(TaskExecution.java:616)
         at fuego.server.execution.TaskExecution.executeTask(TaskExecution.java:152)
         at fuego.server.execution.activities.XAutomatic.execute(XAutomatic.java:60)
         at fuego.metadata.Activity.execute(Activity.java:1022)
         at fuego.server.execution.ToDoItemAutomatic.execute(ToDoItemAutomatic.java:35)
         at fuego.server.execution.DefaultEngineExecution$AtomicExecutionTA.runTransaction(DefaultEngineExecution.java:290)
         at fuego.transaction.TransactionAction.startBaseTransaction(TransactionAction.java:462)
         at fuego.transaction.TransactionAction.startTransaction(TransactionAction.java:540)
         at fuego.transaction.TransactionAction.start(TransactionAction.java:213)
         at fuego.server.execution.DefaultEngineExecution.executeImmediate(DefaultEngineExecution.java:117)
         at fuego.server.execution.DefaultEngineExecution.executeAutomaticWork(DefaultEngineExecution.java:57)
         at fuego.server.execution.EngineExecution.executeAutomaticWork(EngineExecution.java:42)
         at fuego.server.execution.ToDoItem.executeAutomaticWork(ToDoItem.java:264)
         at fuego.server.execution.ToDoItem.run(ToDoItem.java:531)
         at fuego.component.ExecutionThread.processMessage(ExecutionThread.java:754)
         at fuego.component.ExecutionThread.processBatch(ExecutionThread.java:734)
         at fuego.component.ExecutionThread.doProcessBatch(ExecutionThread.java:140)
         at fuego.component.ExecutionThread.doProcessBatch(ExecutionThread.java:132)
         at fuego.fengine.ToDoQueueThread$PrincipalWrapper.processBatch(ToDoQueueThread.java:432)
         at fuego.component.ExecutionThread.work(ExecutionThread.java:818)
         at fuego.component.ExecutionThread.run(ExecutionThread.java:397)
    Caused by: fuego.soaptype.SoapExecutionException: <?xml version="1.0" encoding="UTF-8" ?>
    <MyException faultString="" faultCode="{http://schemas.xmlsoap.org/soap/envelope/}Server"/>
         at fuego.soaptype.SoapCall.processRemoteException(SoapCall.java:531)
         at fuego.soaptype.SoapCall.invoke(SoapCall.java:292)
         at fuego.soaptype.SoapObject.invoke(SoapObject.java:272)
         at fuego.lang.Invokeable.invokeImpl(Invokeable.java:220)
         at fuego.lang.Invokeable.invoke(Invokeable.java:161)
         at BEA_Systems__Inc__.Process1.Default_1_0.Instance.CIL_automatic(Instance.java:265)
         at BEA_Systems__Inc__.Process1.Default_1_0.Instance.CIL_automatic(Instance.java:281)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
         at java.lang.reflect.Method.invoke(Unknown Source)
         at fuego.component.ExecutionThreadContext.invokeMethod(ExecutionThreadContext.java:491)
         ... 27 more
    Thanks,
    fifty

    Hi fifty,
    Did you get a solution to the above problem you have mentioned? I have a similar issue i am trying to fix.
    I have a webservice call in a process activity and if the call does not work i get a soap fault and the fuego.lang.ComponentExecutionException . My process requires that i catch the exception infact any kind of exceptions that occur on that call and perform another activity in the process.
    I have defined an exception handler at the activity level for java.lang.Exception and java.lang.RunTimeException.
    i don't see anything in the catalog which would handle the SOAP fault OR the componentexception.

  • Reassignment of a task in BPM process

    How can I implement reassignment of a task to particular user/user's group in BPM process.
    Is any body guide me on that?Thanks in advance.
    Regards,
    Amik

    Sudipto,
    They can also be defined using Terminating Events for the task as well as Exceptions in the object method. For further info follow the link to the Help Documentation.
    http://help.sap.com/saphelp_47x200/helpdata/en/a6/9baca25f2c11d194a40000e82dec10/content.htm
    Cheers,
    Ramki Maley

  • Fault/Error Handling in Human Task

    Hi,
    We are using Oracle BPM 11.1.1.3.
    1. I create "synchronous" BPM process containing Human Task. Is synchronous process containing Human Task correct? When I invoke this process through EM console, it hangs, i.e. I can not interact with EM console any more. I think the reason is, Human Task activity when executed expects human interaction. I am correct?
    2. I create "asynchronous" BPM process containing Human Task. I invoke it and it runs properly. I login to workspace and work on task.
    My main question is: "Asynchronous" process executes Human Task and waits for Human Interaction. My process is invoked by Java. How will calling Java code know if execution was successful? If any fault/error occurs how can I notify? How will I notify calling Java code if human task encountered any error?
    Please let me know if my question is not clear.
    Many Thanks.

    Hi Anirudh,
    Thanks for quick reply.
    I have a requirement where based on certain condition i need to update the task and reassign it.
    There is a batch that runs and performs the task. While doing so i dont have any info as to whom
    the task is assigned.
    So i am using bpeladmin to perform the task.
    If task is assigned to user and i try to update the task using bpeladmin then am able to do so.
    But if the task is assigned to Group i am getting the error. If task is assigned to user, i am able to
    acquire the task but not able to update the task.
    While updation it shows the task has been acquired by some other user.
    Is there any other way by which i can implement the same ?
    Regards,
    Bhavik

  • Not able to see task of BPM process in UWL

    Dear all,
    I am not able to see my task in Portal UWL and getting an error in UWL workset saying, an error occured while trying to connect to provider and detail message says - Unexpected error occured: XMLParser: No data allowed here (:main:, row:6, col:2)
    In the Portal Log i can see following error message -
    process()
    [EXCEPTION]
    com.sap.engine.interfaces.webservices.runtime.ProtocolExceptionExt: Authentication failed. For details see log entry logID=0021288C0230293F0000000500006EB3 in security log.
    at com.sap.engine.services.wssec.srt.protocols.ProviderSecurityProtocol.logThrowable(ProviderSecurityProtocol.java:1178)
    at com.sap.engine.services.wssec.srt.protocols.ProviderSecurityProtocol.handleRequest(ProviderSecurityProtocol.java:527)
    at com.sap.engine.services.webservices.espbase.server.runtime.ProtocolProcessor.protocolsHandleRequest0(ProtocolProcessor.java:95)
    at com.sap.engine.services.webservices.espbase.server.runtime.ProtocolProcessor.protocolsHandleRequest(ProtocolProcessor.java:70)
    at com.sap.engine.services.webservices.espbase.server.runtime.RuntimeProcessingEnvironment.preProcess(RuntimeProcessingEnvironment.java:483)
    at com.sap.engine.services.webservices.espbase.server.runtime.RuntimeProcessingEnvironment.process(RuntimeProcessingEnvironment.java:322)
    at com.sap.engine.services.webservices.runtime.servlet.ServletDispatcherImpl.doPostWOLogging(ServletDispatcherImpl.java:199)
    at com.sap.engine.services.webservices.runtime.servlet.ServletDispatcherImpl.doPost(ServletDispatcherImpl.java:65)
    at com.sap.engine.services.webservices.servlet.SoapServlet.doPost(SoapServlet.java:61)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:754)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:847)
    I am using Portal 7.2 with SP level 08.
    Thank and Regards,
    M.D.Sahu

    Hi Mithileshwar,
    Start BPM Process Trigger - Read timed out
    Regards,
    V Srinivasan

  • Integration of a WDA Chip as human task in bpm

    Hello experts,
    I'm currently working with the new bpm. Everything is fine, as long as I use the same technology than I did within CE 7.2.
    In 7.3 I want to integrate a WDA user interface using a WDA Chip. I followed the documentation (Netweaver 7.0 EHP2) for preparing my WDA Component and creating a fitting WDA Chip. Thanks to the doc, this steps were nice and easy.
    My problem is, that I cannot consume the created WDA Chip as user interface within the NWDS. I can search for WDA Chips from the "select a UI component" popup and retrieve a list of chips. My created Chip doesn't show up in the result list though. I have to deselect the checkbox "Show supported components only" to see my chip. When I select it, the popup displays an error message : "Chipname is not supported because it must have exactly one inport (list of inports: [])".
    Following the step-by-step instructions for creating wda chips my chip already has exactly one inport with an inport parameter. I can't figure out my problem in this case, since it seems the requirements to wda chips are met by my chip.
    Did anyone else stumble across the problem? Any ideas to get over this?
    I use the current NWDS version (Netweaver 7.3 SP3).
    Kind regards
    Helmut

    Seems I figured it out, thanks to the SAP TechEd Document PMC203 "Creating SAP NetWeaver BPM Task
    UIs with Web Dynpro ABAP"
    I hat to add the correct Tags to the inbound and outbound ports:
    - Tag for the Inbound port: CHIP_CONTRACT:PROCESS_STEP_START_POINT
    - Tag for the Outbound port(s): CHIP_CONTRACT:PROCESS_STEP_END_POINT
    With the ports tagged, the Chip is correctly displayed in the NWDS.
    Thanks to everyone who read this in the meantime.

Maybe you are looking for

  • IPhone 4 does not work after update

    Hello! My sister who lives in Germany found her old iPhone 4 32GB after about 2 years and because my phone broke down, she gave it to me. First, there was a small problem with the battery, but after 2 days on charger, everything was fine. I decided t

  • I purchased a book from itunes and cannot figure out how to get it on my ipod nano 7.  I cannot find an answer that works.

    I purchased an audio book from itunes and cannot figure out how to get it on my nano 7.  I have tried everything. 

  • IPod Cannot Be Read By ITunes

    My Windows XP crashed yesterday. We restored the computer and Itunes and all of the music was still intact (thank god!) Anyway, I added some more songs then went to import them to my Ipod, but just when the Itunes is about to recognize the Ipod, I ge

  • Extended Desktop - Assigning Spaces

    Is it possible to make a second display it's own 'space' when using an extended desktop? I recently started using a second monitor when I am at home, and I'd like to set it up so that certain applications always open up on the extended desktop. Any i

  • Linksys WAG325N connection drop

    I've bought good router (Linksys WAG325N) few days ago and with Tiger all work perfectly. The problem is with Leopard from 10.5 till 10.5.2. The connection to the router every 1 or 2 hour drop, I have to turn Airport off then turn on again to bring c