How to Java methods after submition of human task

I want to implement java callbacks after completion of human task.
My Requirement is : I want to save the process object in my separate table once user has submitted the human task.
Can any 1 give me the example on that.
Edited by: 964010 on Jan 9, 2013 2:21 AM

Hi
See below post for one approach. Anytime a Task is Submitted (means completed by clicking any Action buttons like Submit, Approve, Reject etc etc), the outcome in the method mentioned below is like OUTCOME_UPDATE. First add some print statements here, then later add your custom code.
Re: Assign role, group to Human Task when initiated
Thanks
Ravi Jegga

Similar Messages

  • Any way (event) to call Java method after view created in JSF 2.0

    Hi,
    I am using JSF 2.0 Mojarra's implementation.
    I am interested to know if there is a way to call Java methods before and/or after view has been restored.
    I wanted to initialize data for my page in this Java method.
    I could see there is an event class PostRestoreStateEvent added in JSF 2.0. How to use it?
    I tired to use f:event element as below, but it does not work. Can anyone share anyother idea to achieve this behaviour?
    <f:metadata>
    <f:event type="postRestoreState" listener="#{employeeLoadBean.loadAfterRestoreView}"/>
    </f:metadata>
    Regards,
    Kishore K S

    Hi,
    The problem is solved as below.
    <f:metadata>
    <f:event type="javax.faces.event.PostRestoreStateEvent" listener="#{employeeViewEventListener.postRestoreState}"/>
    </f:metadata>
    The above calls the Java method #{employeeViewEventListener.postRestoreState} whenever View has been restored.
    It was not working when shortName of the event (ie., postRestoreState) is given and throwing ClassNotFound exception.
    Regards,
    Kishore K S

  • How come Java methods can only return one variable?

    Hi,
    I am just curious, how come C/C++/Java methods/functions can only return one argument but can accept many parameters.
    I know that the workaround is to return an object, but sometimes creating a class is just too much overhead.
    Thank you in advance.

    Hello,
    It's an interesting discussion. To get the full answer to your question, you'd have to consult the library and find books on programming language design and implementation.
    I believe the tradition goes all the way back to the first programming languages having subroutines/procedures/functions/methods in them: you can return nothing at all (void i Java) or a single value. The need for returning a single value, I guess, comes from the wish to embed calls in arithmetic expressions:
      res = 2 * someObject.foo(x) - anotherObj.bar(a,b);To my knowledge, few languages allow you to return more values. One that does is BETA (see www.daimi.au.dk/~beta/). Though not indispensable, it's convenient sometimes. I don't know why it's not more widespread.
    Yours,
    Ole

  • How to Use Methods AFTER Work Item Execution (Modal Call)

    Hi,
    Need to execute a piece of code after a decision based on the result.
    Hope this can be done using Methods After WorkItem Execution
    Can anyone give some idea about how to use this.
    Regards
    Imman

    Hi Mike,
    I have a common piece of code that has to get executed irrespective of the decision made,but after the decision.
    Imman

  • How to create payload attribute to the Human Task

    Any examples/doco will be appriciated.

    You open up the human task file (.task) and on the Data tab you add in whatever variables you want to pass to the human task. These can be simple XSD types such as strings, or complex objects ("Add Other Payload") which are elements which have their own .xsd file, typically Business Objects defined in the business catalog. This is how you configure the payload once the .task file has already been created.
    If you have a BPMN process and you're adding a new interactive activity, then you can define the payload while you're creating the activity itself. After you drop the activity onto the process, click the implementation tab, click the green plus icon to add a new human task, then click the plus icon in the parameters section to define the payload. You can drag and drop objects defined as Process or Project data objects from the palette that appears on the right directly into the parameters section on the left. Make sure to mark them as editable if you want users to be allowed to change the values in the human task.
    Edited by: Mike Rokitka on May 14, 2010 10:36 AM
    Edited by: Mike Rokitka on May 14, 2010 10:37 AM

  • How to use boundary catch timer on human task

    Hi,
    We have a requirement that if a human task is not completed within 10 days then invoke a service and after 10 days invoke this service daily till human task is not completed.
    Kindly suggest how we can proceed?

    Hi
    My requirement is first time boundary event service get executed after 10 days and after that service get executed daily. However the link that you have shared does not cover such type of scenario. Kindly suggest.

  • How to specify stylesheet for attachments in Human task

    Dear Experts,
    I can able to add an attachment from BPEL process to Human Task. So from Worklist I can able to download the attachment. Here, I am attaching an XML payload, and I am receiving .xml file from worklist. Now I want to do xsl mapping with my attachment. To do that we have an option when creating Human Task from BPEL . In .task form, under advanced settings--> specify style sheets for attachments, specify wordML for attchments. I have used those options. But not yet my .xsl file mapped with .xml. Is there is any other way to do xsl mapping. Please suggest me.
    Thanks,
    Rajesh

    Hi Anirudh,
    I am using SOA Server suite 10.1.3.1 and JDeveloper 10g. Also I am not using "Application Server Developer's Guide for Microsoft Office Interoperability" this document, what you have mentioned in your last post. My problem is I am having xsl with me, need to map this xsl to my xml attachment. To do that we are having an option on .task form editor, Under Advanced Settings. We can mention/specify stylesheet for attachment, or we can specify wordML for attachment. I have tried both but I cant able to do xsl transformation. I have seen some code in this link. But I dont know whether this blog is correct one. Please suggest me.
    Thanks,
    Rajesh

  • How to configure "permitted actions" on bpel human task

    Hi,
    I trying to call suspendTask at human task from bpel. I get this message
    "Permitted actions are: [VIEW_SUB_TASKS, VIEW_PROCESS_HISTORY, RESUME, VIEW_TASK, WITHDRAW, VIEW_TASK_HISTORY]"
    Where i configure this "permitted actions" ?
    Thanks
    Victor Jabur.

    Go to the composite editor -> open the human taskflow component --> Access Tab ---> Actions ---> Give the access to the Approver
    Ajay

  • How to programmatically add user comment using human task data control

    Hi,
    We create the task form by using “create Task flow based on Human task”. I need to programmatically create and insert the user comment for the task. I know I need to create and insert a new element to the userCommentIterator that linked to the human task data control. But I could not get it work or find any related detail sample coding. Please help.
    Thanks a lot,
    Helen

    post it in soa suite forum
    SOA Suite
    or bpel forum
    BPEL
    to get.. quick reply.

  • Update the result to client (JAVA code) aftere completing the user task

    Hi All,
    I have a simple workflow activity with in my BPEL process .
    FLOW is like this:
    1)----->Initiate/Process
    2)----->Workflow user task
    3)Approve/Reject /Others
    4)If APPROVE a call to web-service method
    5)reply
    If i got the out put as approve the next step is a call to web-service which should give the output to client(JAVA code).
    Is the above senario possible through BPEL.
    Thanks,
    Kalyan.

    HI ALL
    I fixed this problem. Problem was because of classpath. After setting the path of class file in classpath, issue was fixed.
    Regards
    Arun

  • How to capture the Escalation status in Human Task & Update in database

    Hi,
    I have created a Workflow where I have a humantask. Here if the Approver Escalates the task, I want to capture this Workflow status and need to Update it in the our(Oracle) Database as Escalated. I am Updating the database as Approved when the Approver Approves and Rejected when he rejects. as we can have capture these status. Similarly I want to do for the Escalated status also.
    Please Help I have been stuck to this.
    Thanks.

    No Experts to answer this???????????????????

  • How to remove data from page after submitting the page?

    Hi,
    I am using API to create person record.After submitting the create page the data are still
    showing on that page.
    How to remove data after submitting the page?
    Please suggest.
    Regards,
    Sagarika

    Abdul,
    Your solution is perfect if the UIX beans on the page do not have BC4J binding with a VO attribute, otherwise, Sumit's soution is appropriate.
    --Mukul                                                                                                                                                                                                                                                                                                                                                                               

  • How to update flex field data on a human task?

    After entering a human task and assigning the data how do you then update flex field data whilst the task is still assigned. I'm using the task services to communicate with the task and applying filters based on the flex field data.
    I want to update the data when actions take place on the task e.g. suspend, aquire, release.
    Any ideas?

    You can fetch the task , change the flex attribute value and update the task. Find below the steps we do for updating one of the TextAttribute
    Task completeTask =  // get the task using task query service
    completeTask.getSystemMessageAttributes().setTextAttribute2(updatedfolderName);
    completeTask = // update the task using "updateTask" method

  • How the string method indexof is really implemented

    Can please sombody please help me Iam a student of nottingham university and would like know how the java method indexof(String ) wich searches for a given substring in a string is accually implemented by those who wrote the java core classes.Well at least how the algorithm works

    Why not just take a look at the API files provided with the JDK distribution?

  • How the string method index of is really implemented

    Can please sombody please help me Iam a student of nottingham university and would like know how the java method indexof(String ) wich searches for a given substring in a string is accually implemented by those who wrote the java core classes.Well at least how the algorithm works

    You could download the source and look yourself.
    In 1.3.0 it calls the indexOf(String,int) method using zero for the second argument.
    For indexOf(String,int)
    -Do some checking of the args and for zero length strings.
    -Find the first character of the passed in string
    - If found then check characters that follow (if match then return index of first)
    - If no match then find next first character and loop
    - If no first character then the match fails.

Maybe you are looking for