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

Similar Messages

  • 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

  • Get Error while update the User defined row table through DSK Code

    Hi experts,
    I have got an error while updating the user row defined table.
    Error is - "Invalid row"
    I have created one master table "@CBF_FARM " and Child table "@CBF_FAR1"
    First i inserted 5 record in the child table so in my my child table there are 5 Line id (1,2,3,4,5 one for each row).
    after that i delete 2 rows (3rd & 4th row) from child table now in my child table there are 3 rows( Line id 1, 2, 5). Please See attachment.
    Now i am updating  the last record of child table through Code  (Line id is 5)  from other form, then i got error  invalid row.
    Following Code used for updating the user defined child table.
      SAPbobsCOM.GeneralService oGeneralService1 = null;
                                    SAPbobsCOM.GeneralData oGeneralData1 = null;
                                    SAPbobsCOM.GeneralDataParams oGeneralParams1 = null;
                                    SAPbobsCOM.CompanyService sCmp1 = null;
                                    SAPbobsCOM.GeneralData oChild1 = null;
                                    SAPbobsCOM.GeneralDataCollection oChildren1 = null;
                                    sCmp1 = clsAddOn.LDNA_Company.GetCompanyService();
                                    oGeneralService1 = sCmp1.GetGeneralService("CBF_FARM");
                                    // Get UDO record
                                    oGeneralParams1 = ((SAPbobsCOM.GeneralDataParams)(oGeneralService1.GetDataInterface(SAPbobsCOM.GeneralServiceDataInterfaces.gsGeneralDataParams)));
                                    oGeneralParams1.SetProperty("Code", oForm.Items.Item("edtFarmCd").Specific.Value);
                                    oGeneralData1 = oGeneralService1.GetByParams(oGeneralParams1);
                                    // Add lines on UDO Child Table
                                    oChildren1 = oGeneralData1.Child("CBF_FAR1");
                                    // Create data for rows in the child table
                                    SAPbouiCOM.Item oItem = oForm.Items.Item("cmbShed");
                                    oCombo = oItem.Specific;
                                    string ShedCode = oCombo.Selected.Value;
                                    ldna_Rec = clsAddOn.LDNA_Company.GetBusinessObject(SAPbobsCOM.BoObjectTypes.BoRecordset);
                                    string strQuery1 = "select LineId from [@CBF_FAR1] where U_ShedCd = " + ShedCode;
                                    ldna_Rec.DoQuery(strQuery1);
                                    oChild1 = oChildren1.Item(ldna_Rec.Fields.Item("LineId").Value - 1);
                                    oChild1.SetProperty("U_Status", "Ready For Schedule");
                                    //Update the UDO Record
                                    oGeneralService1.Update(oGeneralData1);
    Please Help me it is an urgent requirement,
    -Regards
    Vikas

    hi.
    Error is - "Invalid row"
    Now i am updating  the last record of child table through Code  (Line id is 5)  from other form, then i got error  invalid row.
    As per my knowledge
    What i understood is you have 5 lines and you are going to be update 5th line
    am i correct..
    while u are updating the line in child table
    you have to consider like this..
    line number         u have to update like
    1                                        0
    2                                        1
    3                                        2
    4                                        3
    5                                        4
    which means in child table treat
    line 1  as 0
    line 2 as  1
    line 5 as 4
    If you want to update the line 5 u have to mention 4 th line

  • How to update OID oblogintrycout attribute through java code

    Hi Team,
    As per my requirement ,i need to update OID oblogintrycout attribute through java code. could you please help me on this.
    where can i get the java code.
    Regards,
    Ravi.

    As always, Google is your friend.
    Follow the bouncing link.
    http://www.google.com/search?hl=en&q=VisualSourceSafe+%2B+Java+API
    PS.

  • Execute Java code after login

    Hi experts,
    I'd like to execute some Java code after a successful login. I guess I could write a custom login module or use a WD Java iView to do this but a "better" solution may exist.
    Regards,
    Pierre

    Customizing your login module is probably your best bet. As soon as you're user is authenticated, you can execute your custom Java code.
    From my experience, I have not seen an easier / cleaner way to capture that event.
    Regards,
    Tom

  • HT202157 I updated my 2nd gen apple tv and after completing the downloading and installing the software I got an itunes picture that means i have to connect it to iTunes,, can i skip this ? coz i don't have the mini usb cable

    I updated my 2nd gen apple tv and after completing the downloading and installing the software I got an itunes picture that means i have to connect it to iTunes,, can i skip this ? coz i don't have the mini usb cable

    No, if you have that picture it means the update went wrong and you need to restore via iTunes.
    AC

  • I updated my 2nd gen apple tv and after completing the downloading and installing the software I got an itunes picture that means i have to connect it to iTunes,, can i skip completing the downloading and instais ? because i don't have the mini usb cable

    I updated my 2nd gen apple tv and after completing the downloading and installing the software I got an itunes picture that means i have to connect it to iTunes,, can i skip this ? because i don't have the mini usb cable

    No, if you have that picture it means the update went wrong and you need to restore via iTunes.
    AC

  • I updated the default task.eddmod edd doc to add new elements to my catalog. How do I have the new element appear on FM application?

    After updating the default task.eddmod.edd document, I have:
    Created a dtd from the updated edd.
    Opened Structure Tools > Structure Application Designer. Selected existing application (dita_1.2_task), selected my updated edd, dtd, and task.template, and saved it.
    The new elements I created in the edd appear in my application now.
    Do I need to create a dtd and update the structure application designer every time I update my edds?

    It looks like you've got two posts with the same question (in the structured forum) .. I'm just replying to this one.
    When you update an EDD you must always import that EDD into the associated template. The structured application only references the template, so changing the EDD will have no effect until you import that into the template.
    I have no idea how the Structure Application Designer works, so can't speak to that, but I'm sure the fundamental relationship of EDD to template still applies. If your EDD changes affect the model itself (adding/removing elements or attributes), you'll need to modify the associated DTD as well. Keep in mind that you can't just change the DITA DTDs and expect the result to be DITA compliant. There are rules about how to make these changes by "specializing" the model. If you change the model it may work for you in FM, but it may not work when you try to process or edit with other DITA-compliant tools.
    One other thing to keep in mind is that if your change is something that you'd expect to be available in other topic types (other than "task"), you'll need to make the same edits to the other topic structure applications.
    Cheers,
    ...scott

  • Can I update the user ID of a user?

    We've noticed that the OOB login component assumes that you log in using your  user ID and password. This is fine if you never update the user name, but in our organization the requirement is to let users update their username. How would we need to implement this? We see two solutions:
    1) username is in fact user ID. When the user updates the username we need to somehow update that user's ID or delete the existing user ID and create a new one. We do not like this approach as it looks like a lot of reverse replication will need to be done.
    2) username is NOT the user ID. In this case it would mean we need to update the OOB login components as that component takes the user ID as input, not the username. We would need to use javascript to find the userID based on the provided username before starting the authorization process. We will also need to make sure that username remains unique across all users.
    Any opinions on what would be easiest to implement. We don't really like any of the options. Ideally I wish we could just update the userID of a user as that would mean we can use all of the OOB components for login and profile handling. But I've read that this is not possible.

    Hello,
    I would refer you to not play with username (userid/principal name) and because you have this requirement i will suggest to add one more property to user node (/home/users) say user_login_name which will have same value as username (rep:principalName) while first time registration.
    Now you have to do small tweak in your login module, every time when user will login you would expect value for "user_login_name" and once user click on login button before submitting for authorization you have to query to repository system to get actual username (rep:principalName) from repository and then use actual username for login. It means "login_user_name" will be just for display but back side you will be running same logic by small code tweak.
    Now about changes to login_user_name can be easily placed as everytime you will be allowing user to update "login_user_name" not "username" but you must have to take care of one thing that there will be no duplicate "login_user_name" in system. For that you can write a listener which will be fired at the time of form submit or may be you can also do through client side script validation (you have to some research for feasibility at client side - may be "ecma" script can help).
    For even listener plz refer - http://blogs.adobe.com/contentmanagement/2012/08/27/how-to-prevent-users-from-entering-dup licate-vanity-urls/
    http://sling.apache.org/site/eventing-and-jobs.html
    For more information or any issue in listener let me know.
    Thanks,
    Pawan

  • Need a BAPI or FM to update the User filed ie., AFVGD-USR00 in Tcode CN22

    Hi,
    I am updating the User field of Network in Tcode CN22 through BDC . Now, Please give me FM or BAPI to update User field AFVGD-USR00 in Tcode CN22.
    Regards,
    Deepthi.

    Hi,
    I have written the code but it is not working . my code is as below:
    DATA : i_meth TYPE STANDARD TABLE OF bapi_method_project,
           w_meth TYPE bapi_method_project,
           i_act TYPE STANDARD TABLE OF bapi_network_activity,
           w_act TYPE bapi_network_activity,
           i_actu TYPE STANDARD TABLE OF bapi_network_activity_up,
           w_actu TYPE bapi_network_activity_up,
           i_ret TYPE STANDARD TABLE OF bapireturn1,
           w_ret type bapireturn1.
    w_meth-objecttype = 'NETWORK'.
    w_meth-method = 'UPDATE'.
    Object key in Netwrok Activity is combination of Network and Network Activity
    w_meth-objectkey = '0000040070550010'.
    w_meth-refnumber = '0000040070550010'.
    w_meth-objecttype = space.
    w_meth-method = 'SAVE'.
    w_meth-objectkey = space.
    w_meth-refnumber = space.
    APPEND w_meth TO i_meth.
    CLEAR w_meth.
    w_act-network = '000004007055'.
    w_act-activity = '0010'.
    w_act-user_field_char20_1 = '000004008252 0010'.
    APPEND w_act TO i_act.
    CLEAR w_act.
    w_actu-network = 'X'. .
    w_actu-activity = 'X'.
    w_actu-user_field_char20_1 = 'X'.
    APPEND w_actu TO i_actu.
    CLEAR w_actu.
    CALL FUNCTION 'BAPI_NETWORK_MAINTAIN'
    IMPORTING
       return                            = w_ret
      TABLES
        i_method_project                  = i_meth
       i_activity                        = i_act
       i_activity_update                 = i_actu.
    CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'.
    Regards,
    Deepthi.

  • Updating the User Status in Sales Order Item

    Dear Gurus,
    Iam trying to update the User Status on the SO item using STATUS_CHANGE_EXTERN function module and the status is successfully getting updated.
    But the problem is if Iam updating the status it has to delete the Purchase Requisition assgined to it, which is not happening.. whereas when Iam manually changing the Status, the PR is getting deleted.. Can anyone suggest some other function module or some other way of doing it other than BDC?
    Best Regards,
    Sreenivas.

    Hi ,
    I am also need to update the Item user status. Could you please provide me the logic for the FM 'STATUS_CHANGE_EXTERN'. And also let me know the where we need to write the logic in VA01/VA02.
    It would be helpful me a lot.
    Thanks
    Srihari.

  • Help:Invoke web service after receiving a user task response

    Hi, All:
    We encountered a problem while developing user task. The detail is as follows:
    We need to invoke a web service after a user task's response, that is to say, the web service needs some data from the response of the user task.
    Take the loan flow tuturial as a example, what we need to do is to invoke a web service after the BPEL process get the start loan APR. the web service needs the APR for its input message. how can I handle this situation?
    Thank you very much for your help!

    Thanks for your immediate response Jan Vervecken.
    I have created the Data Control from web Service proxy and I am able to recieve the output from the web Service.
    But, Currently I am invoking the webservice process method by a command button which populates my SelectOneChoice.
    My requirement is to invoke the web service 'process' method by value change event in the SelectOnechoice control.
    So, Can you pls. let me know how do I bind the web Service method 'process' to value change event of SelectOnechoice control?
    Thanks and Regards,
    Sandeep T

  • Cannont update E70 nad bug with phone code after b...

    launch NokiaSoftwareUpdate v1.4.39pl
    accept and start update to software 3.0633.09.04 ( using USB cable)
    time remaning 15 mintes ... nokia have white screen , during proceed to 9 minutes , and e70 is reset after reset , on e70 screen show :
    AFE_TEST_SERVER ,w19_06,(c) NMP
    test mode
    nokia
    update show information with 2 steps about put out a battery ,
    after hard reset phone is run but its a problem with PHONE CODE
    after i configure a phone i change default code to my code xxxxxx
    but after bad update code is reset to unknown code
    other bug i found my personal code enter when i change a phone code and enter twice new code show me msg error [-6]
    but old code enter correctly becouse if i use another code then after put twice new code show me message a invalid code .

    Can you please try generating and re-inserting the FB code on your page. The FB Likebox at the above link doesn't load for me from any of the mobile devices nor through a desktop. You can get the code here.
    https://developers.facebook.com/docs/reference/plugins/like-box/
    I was referring to the following Facebook Page URL that you are currently pulling the Streams and Likes for - http://www.facebook.com/phillyweddingdj which appears to be invalid. If you generate the code for it at the above mentioned plugin page, the preview doesn't generate. Visiting this link takes you to FB homepage instead.
    This is how the Likebox code should look like with minimum customization that you need to insert through Object -> Insert HTML option, notice the highlighted part that needs to be modified with a valid FB Page URL:
    <div id="fb-root"></div>
    <script>(function(d, s, id) {
    var js, fjs = d.getElementsByTagName(s)[0];
    if (d.getElementById(id)) return;
    js = d.createElement(s); js.id = id;
    js.src = "//connect.facebook.net/en_US/all.js#xfbml=1";
    fjs.parentNode.insertBefore(js, fjs);
    }(document, 'script', 'facebook-jssdk'));</script>
    <div class="fb-like-box" data-href="http://www.facebook.com/myfbpage" data-width="292" data-show-faces="true" data-stream="true" data-header="true"></div>
    </div>
    Thanks,
    Vinayak

  • CSOM: Update the IsLockedByManager task field

    Hi,
    I have a request from a Customer: he need to automatically Lock Tasks for Updates, depending on some conditions (mainly based on the "age" of te task. The Customer is hosted in Project Online.
    My idea was to create a task boolean field, with a formula:
    true if the task has to be locked
    false otherwize
    A daily batch written as a C# application will run everynight, and set the IsLockByManager field to true, for the selected task.
    I've written a first proto, and it does not work: it seems that this field cannot updated, even if it is writtable. I tried to update some other tasks field (like IsManual, or IsActive), and for those fields, it works.
    Is this behaviour normal ? Does anybody there already experienced this problem ? I enclose below a part of my code. Thank you for your help.
    Sylvain
    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Web;
    using Microsoft.ProjectServer.Client;
    using Microsoft.SharePoint.Client;
    //using NeosSDI.ProjectOnline.Business;
    namespace NeosSDI.ProjectOnline.CSOM
    public class LockTasks
    static void Main(string[] args)
    ConsoleColor initialColor = Console.ForegroundColor;
    try
    // First, very simple: list Projects, and their tasks
    var projectContext = ProjectCSOMManager.ReadProjects();
    ProjectCSOMManager.LockNonActiveTasks(projectContext.Projects);
    catch (Exception ex)
    Console.WriteLine("Press a key...");
    Console.ReadLine();
    public static ProjectContext ReadProjects()
    try
    projContext = new ProjectContext(PwaPath);
    projContext.ExecutingWebRequest += ClaimsHelper.clientContext_ExecutingWebRequest;
    // Use IncludeWithDefaultProperties to force CSOM to load the Tasks collection, otherwize we have a (very) lazy loading
    // Careful: the Load method does not perform the Load ! It prepare the context before the ExecuteQuery is run.
    projContext.Load(projContext.Projects,
    c => c.Where(p => p.Name == "Project 1").IncludeWithDefaultProperties(pr => pr.StartDate, pr => pr.FinishDate, pr => pr.Tasks));//.Where(t=>t.Name=="Project 2 - T1")));
    // Actual execution of the Load - AFter this method, the Projects collection contains data, and the properties which are specified below.
    projContext.ExecuteQuery();
    catch (Exception ex)
    throw ex;
    return projContext;
    public static void LockNonActiveTasks(ProjectCollection projects)
    foreach (var p in projects)
    if (!p.IsCheckedOut)
    DraftProject dp = p.CheckOut();
    projContext.Load(dp.Tasks, dt => dt.IncludeWithDefaultProperties(lt => lt.Name));
    projContext.ExecuteQuery();
    foreach (var t in dp.Tasks)
    // With IsActive, it works
    // t.IsActive = false;
    // With IsLockedByManager, it doesn't work
    t.IsLockedByManager = true;
    // Récup le job qui sort d'Update
    var job = dp.Update();
    var js = projContext.WaitForQueue(job, 10);
    job = dp.Publish(true);
    js = projContext.WaitForQueue(job, 10);
    projContext.ExecuteQuery();

    Hi,
    To give an update of this question, I managed this problem differently: the
    IsLockedByManager field has really no effect on the task. For DraftTask, this field is writtable, but the change is not taken into account, and not saved (bug or undiscovered function)...
    Instead of a batch, I created a macro in Project Pro: on the Save event, the macro tests the status of a custom field.
    Depending of this field, I update the Publish field of the task. The macro is integrated in the Entreprise Global, to make its deployment easy for all the users.
    This macro is based on a post at this adress: thanks to its author :)
    http://www.applepark.co.uk/automatically-setting-the-task-publish-field-to-no/
    Private Sub Project_BeforeSave(ByVal pj As Project)
    SetPublishField
    End Sub
    Sub SetPublishField()
    Dim Temp As Long
    Dim Tsk As Task
    Dim TaskField As Long
    Dim IsTaskToLock As String
    For Each Tsk In ActiveProject.Tasks
    ' check to see if a task exists
    If Not Tsk Is Nothing Then
    ' check to see if the task is external or a summary
    If Not (Tsk.ExternalTask Or Tsk.Summary) Then
    TaskField = FieldNameToFieldConstant("MY LOCK FIELD", pjTask)
    IsTaskToLock = Tsk.GetField(TaskField)
    If IsTaskToLock = "Oui" Then
    Tsk.IsPublished = False
    Else
    Tsk.IsPublished = True
    End If
    End If
    End If
    Next Tsk
    End Sub

  • Error while updating the Human task

    When I try to update my Human task the following error is occuring in JDeveloper and I can't save my changes, any help will be appreciable. thank you.
    Uncaught exception
    java.lang.NullPointerException
    o.bpel.services.workflow.verification.impl.TaskContentAccess.getAccess(TaskContentAccess.java:127)
    o.tip.tools.ide.workflow.util.AccessRulesUtil.getDefaultActionAccessData(AccessRulesUtil.java:265)
    o.tip.tools.ide.workflow.util.AccessRulesUtil.getChangedActionAccessData(AccessRulesUtil.java:174)
    o.tip.tools.ide.workflow.editor.tab.TaskActionAccessConfigurationPanel.getData(TaskActionAccessConfigurationPanel.java:272)
    o.tip.tools.ide.workflow.editor.tab.TaskAccessConfigurationPanel.getActionData(TaskAccessConfigurationPanel.java:103)
    o.tip.tools.ide.workflow.editor.tab.AdvancedOptionsPanel.getData(AdvancedOptionsPanel.java:215)
    o.tip.tools.ide.workflow.editor.tab.AdvancedOptionsEditor$LocalPropertyChangeListener.propertyChange(AdvancedOptionsEditor.java:141)
    j.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSupport.java:339)
    j.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSupport.java:276)
    j.a.Component.firePropertyChange(Component.java:8128)
    o.tip.tools.ide.workflow.editor.tab.AssigneesEditor.propertyChange(AssigneesEditor.java:186)
    j.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSupport.java:339)
    j.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSupport.java:276)
    j.a.Component.firePropertyChange(Component.java:8128)
    o.tip.tools.ide.workflow.editor.v2.StageEditor.firePropertyChange(StageEditor.java:1488)
    o.tip.tools.ide.workflow.editor.v2.StageEditor.propertyChange(StageEditor.java:1081)
    j.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSupport.java:339)
    j.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSupport.java:276)
    j.a.Component.firePropertyChange(Component.java:8128)
    o.tip.tools.ide.workflow.editor.v2.ParticipantEditor.editParticipant(ParticipantEditor.java:1304)
    o.tip.tools.ide.workflow.editor.v2.ParticipantEditor$LocalMouseAdapter.mouseClicked(ParticipantEditor.java:1004)
    j.a.Component.processMouseEvent(Component.java:6266)
    jx.s.JComponent.processMouseEvent(JComponent.java:3267)
    j.a.Component.processEvent(Component.java:6028)
    j.a.Container.processEvent(Container.java:2041)
    j.a.Component.dispatchEventImpl(Component.java:4630)
    j.a.Container.dispatchEventImpl(Container.java:2099)
    j.a.Component.dispatchEvent(Component.java:4460)
    j.a.LightweightDispatcher.retargetMouseEvent(Container.java:4574)
    j.a.LightweightDispatcher.processMouseEvent(Container.java:4247)
    j.a.LightweightDispatcher.dispatchEvent(Container.java:4168)
    j.a.Container.dispatchEventImpl(Container.java:2085)
    j.a.Window.dispatchEventImpl(Window.java:2478)
    j.a.Component.dispatchEvent(Component.java:4460)
    j.a.EventQueue.dispatchEvent(EventQueue.java:599)
    j.a.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
    j.a.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
    j.a.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
    j.a.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
    j.a.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
    j.a.EventDispatchThread.run(EventDispatchThread.java:122)
    Edited by: user9351838 on 15-Feb-2012 18:45

    Seems you Human Task has run into not finding the input configurations you have made for the same.
    Please check the .task files generated. and delete it from Composite and trying recreating the Human Task.
    Reg,
    MaShek

Maybe you are looking for

  • How do I get my iCloud pics from a different phone

    How do I get my iCloud from my iPhone 3GS to my iPhone 4

  • Turn off the SQL DB monitoring entirely in scom 2012 (SP1)

    Is there a way to centrally target and turn down monitoring of all the servers running SQL DB in SCOM 2012. We actually created groups using the OU's to target the SQL servers but some of the servers which have SQL DB are not in that OU and they are

  • IMovie 10.0.7 won't allow me to record voiceover

    I'm using iMovie 10.0.7 and have been recording voiceovers without a problem up until recently. I can't work out why the program no longer allows me to record. I press 'V' and the red record button appears, but when I press it to record a voiceover t

  • Workflow document for DMS & ECM

    Hi friends, I am in implementation project and am looking in workflow for both DMS and ECR/ECO scnearios I am doing R& D in sap help but i personally request any one who can share any documents with screenshots in DMS and ECR/ECO Points will be award

  • Printing a file

    hello, i am trying to use the javax.print package to print a file. The following is my code: import java.net.*; import javax.print.*; import javax.print.attribute.*; import javax.print.attribute.standard.*; class t { public static void main(String ar