Problem in setting the task outcome programmatically

Hi,
I am trying to set the outcome of a human task programatically using the BPM API.I am using the following piece of code to achieve this:-
taskService = wfServiceClient.getTaskService();
task=taskService.updateTaskOutcome(wfContext, task.getSystemAttributes().getTaskId(), "SUBMIT");
But what is happening is although the task form is being submitted and I can only see it in the completed list of tasks in the BPM workspace, the process flow is getting stuck at the human task node.Do I have to call anyother method in order to move the process flow to the next activity? I tried with :-
taskService.submitInfoForTask(wfContext, task);
But I am getting an exception.Any help is highly appreciated.
Thanks
Edited by: user11930797 on Nov 17, 2011 3:48 AM

If the Human Task shows status complete, then it's possible that there was an error in the output data association in the process. In EM do you see a fault on the output for the Human Task activity, or if PS4FP the process will go to suspended state if the data association fails.

Similar Messages

  • How to set the conversation id programmatically in a BPM process

    Hi all,
    I am using BPM/SOA 11g PS3.
    Is it possible to set the conversation id programmatically in a BPM process starting with a none start event?
    I know I can set it easily if I use a BPM process starting with a message start event.
    All I have to do is set it in the "wsa:MessageID" node in SOAP Header when I initiate the process instance.
    However, I have no idea how to set the conversation id programmatically in a BPM process starting with a none start event.
    I looked for if there is any appropriate method in the Java api for the process instance management, such as IInstanceManagementService and CompositeInstance, but no method seems to be appropriate.
    Does anyone know how to do this?
    Regards,
    Kenji
    Edited by: Kenji Imamura on 2011/04/20 0:10

    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.

  • How to set the DFF Attribute Programmatically?

    hi
    how to set the DFF Attribute Programmatically in Process Request of CO
    thanx

    Hi
    Do u want to set the value in DFF Programmatically ?
    u can capture the VO used for DFF and set the the value in controller.
    Thanks

  • Problem in setting the smtp in a apple mail account.

    Can anyone help me resolve a problem in setting the mail preferrences? I have multiple email accounts and the smtp address is being deleted to a none smtp in an account then when I fix the problem in one account it deletes an smtp address in another email account. When I fix that account it deletd another smtp address and so on an so forth. Is this a virus or is there a fix for this problem?

    Mail in IOS iPhone or OS X?
    Anyway You select each account and assign or create new smtp.

  • How to set the tasks as cancelled

    Guys ,
    I had a scenario , where i have written a setObjectStatus adapter which sets the status of RO as Revoked.
    So i have provisioned a resource to a user and did some updates on resource profile as well , the status of the RO is provisioned and the tasks
    like create user , abc updated etc ... as completed .
    Now i fire the setObjectStatus adapter and it sets the RO status as revoked successfully . The check boxes like enable, disable , revoke etc are disabled as a result of setting the RO status as revoked . But the task inside doesnot become canceled.
    Any ideas how to achive the cancellation of tasks as well ?
    Thanks
    'Suren

    Hi Surendra.
    What did you get when you run the tcUserOperationsIntf.getObjects(userKey)? When you run this method, you'll get all object instance for a specific user, so you have to read the Object Instance.Key attribute.
    Also, you can invoke the methods below of useroperationsintf:
    void revokeObject(long plUserKey, long plObjectInstanceForUserKey)
    Revokes the provisioning of an object for a user directly without going through a request.
    void revokeObjects(long plUserKey, long[] paObjectInstancesForUserKey)
    Revokes the provisioning of an object for a user directly without going through a request
    Renato.

  • Problem while setting the selected value of h:selectOneMenu to bean

    Hi all,
    I am new to JSF. I am working on application where i have combo boxe on the page. I am setting some values to the combobox from database using <f:selectItems> tag and one value using <f:selectItem> tag. The value combobox value selected by user is set to the bean property which is String. I am able to display all the values in the combobox but when clicked on button (present at the end of form) i am getting following error-
    ERROR HtmlRendererUtils:354 - Error finding Converter for
    component with id interviewStageOneForm:acceptanceChannelList
    I am setting the combobox selected value to the to the bean property which is String and the value selected in also String. Then which converter it is asking for. I am not able to find out what is the problem.
    Your suggestions will be really appreciated.
    Here is my code snippet:-
    JSF:-
    <h:selectOneMenu id="acceptanceChannelList"
         value="#{interviewStageOneBean.index}">
         <f:selectItem itemValue="Select" itemLabel="#{Message.combo_select}" />
         <f:selectItems value="#{MasterDataBean.acceptanceChannelList}" />  <!-- The list coming from database-->
    </h:selectOneMenu>Bean:-
    public class InterviewStageOneBean {
         private String index;
         public String getIndex() {
              return index;
         public void setIndex(String index) {
              this.index = index;
    }

    Hi!
    First I would try next:
    Try to leave out
    <f:selectItem itemValue="Select" itemLabel="#{Message.combo_select}" />
    line. And check if it works after that. If it didn't repeat step but you leave in message selectItem and dump out database selectItem line.
    Second:
    I would check acceptanceChannelList creation and what type of objects you put while doing setValue and setLabel on UISelectItem
    Probably selectItem value has been assigned an object of type the engine doesn't know how to convert from String to it.

  • Problem in setting the parameters for an OASingleSelectionBean

    Hi,
    I have created an advanced table, for which I have to allow single selection or mutliple selection according to my requirements ie dynamically. So, for single selection, I have created a OASingleSelectionBean dynamically and add this to my advanced table bean.
    I also want to set Action for the single selection option. I have set the action using
    setPrimaryClientAction() which takes an argument of oracle.cabo.ui.action.FirePartialAction class. Now I also want to pass certain parameters when the single selection event happens.
    For that, I have taken an object of FirePartialAction class and but using the FirePartialAction class .setParameters(oracle.cabo.ui.collection.Parameter[]) function. I am setting the parameters using
    Parameter class object.setKey
    Parameter class object.setValue
    But my problem is that I want the value for the parameters at runtime, for which I intend to use SPEL. But I am not able to use SPEL using the setValue method.
    So it goes like this in short:
    OAAdvancedTableBean.setTableSelection(OASingleSelectionBean)
    OASingleSelectionBean.setPrimaryClientAction(FirePartialAction)
    FirePartialAction.setParameters(Parameter[])
    Parameters.setKey(String)
    Parameters.setValue(String) --- In case of value I want to give SPEL as an argument as I get the value at rutime
    Is that any other way in which I can set the value for the parameters using SPEL?

    Hi,
    I got ur point.
    Although i have never tried.........Can you try using method
    Parameters.setValueBinding(new OADataBoundValueViewObject(<single selectionbean>,<vo attr>))
    In this way without the use of SPEL, you will be able to achieve the functionality!
    Try this and get back to me!
    --Mukul
    Message was edited by:
    Mukul Gupta

  • Problem in setting the resultset recordset

    hi all,
    i am trying to do paging in my website .. i want to set the records fetched from the resultset...i am using the "rs.setFetchSize(3)"
    i want to show only 3 records per page...
    code is shown below.. problem is it is showing
    "java.sql.SQLException: Invalid Fetch Size"
    exception.... please help me out...
    package demo;
    import java.sql.*;
    public class fetchrecord {
         public static void main(String[] args) {
              Connection con =null;
              try
              Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
              con=DriverManager.getConnection("jdbc:odbc:chandan");
              Statement st=con.createStatement();
              String q1="Select * from Table1";
              ResultSet rs=null;
              rs=st.executeQuery(q1);
              rs.setFetchSize(3);
              System.out.println("Details are as follows");
         System.out.println("\n");
              while(rs.next())
              String Name = rs.getString(1);
              String School = rs.getString(2);
              System.out.print(Name+" ");
              System.out.print(School);
              System.out.println("\n");
              }catch(Exception e)
              System.out.println(e);
              try {
              con.close();
              catch (SQLException e)
              e.printStackTrace();
    thanks
    chandan sharma

    as per the api documentation, an exception occurs when the condition 0 <= rows <= Statement.getMaxRows() is not satisfied

  • Problem in completing the TASK when using Web Dynpro Java and BPM

    Hi,
    I am using Web Dynpro Java and BPM.
    i see my Web Dynpro View when i run the process.
    Just that the task is not completing.
    when i click on the Web Dynpro button to signal the completion of the event, nothing happens.
    i have appropriately created events in both Component controller and Interface Controller and used the same in creating the Task.
    a method in Component controller fires the event and a button click in the view calls this method.
    i have successfully completed Donka Dimitrova's "SAP Netweaver Business Process Management-End-to-End Process Implementation Sample " but when i tried my own with slight modifications, it is not working !!!
    http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/d07f3e88-554f-2b10-3cbf-ab8afea51b9f
    regards,
    -Amol Gupta

    Hi Amol,
    The way you described the things, I dont see any problems. Just to make sure that you are triggering the right event that you mapped as completion event for the task, try to cross check once again and see if the correct event is getting triggered. Also try to put some messages for debugging to see till where the control goes.
    Regards,
    Arafat

  • Problem in setting the target property to _SELF of LinkToURL UI Element

    Hi,
    I have a LinkToURL UI Element in my web page which has to open up another page in the same window.
    I tried setting the target property to _SELF, but it's not working.Instead the page is opened in a new child window.
    Please tell me whether to set any other property to get that.
    Thanks and Regards,
    Padma Usha.

    Hi,
    Please give the target value in lowercase "_self".
    Regards, Anilkumar

  • How to set the LOV value programmatically?

    Hello,
    I have a LOV (select list with submit) the value (displayed and corresponding returned) of which I would like to set by selecting a row in a report.
    What is the event I use to catch the selection of the row in the report and what would be the sample code to set the LOV values?
    Thanks a lot!
    Gabor

    Perhaps a more detailed explanation of the issue helps:
    I am developing an online internet bookmarking application. It basically contains a folder tree and bookmarks within the folders.
    The folder tree is implemented by a table referencing itself (main columns are: ID, NAME, PARENT_ID).
    The LOV lists the NAMEs (actually, the full path of each folder as returned by a function) and returns the IDs.
    When the user selects a NAME, folders and bookmarks contained in that folder are listed in a report (non-recursively).
    The action of the user clicking a folder in the report should simulate the above as if they selected the name manually. This is where I need help!
    I hope this helps. Thanks!
    Gabor

  • How to get iterator to set the row key programmatically after a refresh

    I have a master detail page as master form with navigation and a detail table. When i create a new master record in a specific form i want to return to the master detail after the cache is refreshed and set the currency (selected row) to the last row.
    I override the persistEntity action method and get the bindings and bindingOperation but i didn't find a way to get the iterator to set it to the last row (the new inserted row).
    Any idea is welcome ?
    Thanks for help

    found it in SRDemo ... for the ones that will have same difficulty to find it !
    public String cancelButton_action() {
    //Reset the product list to the first item
    DCIteratorBinding productIter =
    ((DCBindingContainer)getBindings()).findIteratorBinding("findAllProductIter");
    productIter.setCurrentRowIndexInRange(0);
    //Navigate back to the list page
    return "GlobalHome";
    }

  • Problem in setting the background color of jtable with Nimbus

    Hi
    I have created a java swing application. In which I am using JTable.
    When creating a simple JTable and displaying with Nimbus, the row background color alternates between white and a light blue-grey.
    I want the table with single colour. Only the first column should be grey colour and other should be white.
    I used this code to set the background and foreground colour.
    public Component prepareRenderer
        (TableCellRenderer renderer, int index_row, int index_col){      
                Component objComponent = super.prepareRenderer(renderer, index_row, index_col);         
                Color objGreyColour = new Color(240,240,240);
                Color objWhiteColour = new Color(255,255,255);
                if(index_col == 0){
                    objComponent.setBackground(objGreyColour);
                    objComponent.setFont(new java.awt.Font(CommonClass.getFontName(),java.awt.Font.BOLD, CommonClass.getFontSize()));
                    objComponent.setForeground(Color.BLACK);
                }else{               
                    setSelectionBackground(Color.BLUE);
                    objComponent.setBackground(objWhiteColour);
                    objComponent.setForeground(Color.BLACK);
                return objComponent;
            } Look wise it is fine but when i try to select the cell it is not highlighting the cell and also i m not able to select multiple cell with ctrl key.
    Any help would be appreciated
    Thanks
    Sonal

    Hello,
    1) if you want better help soone,r please post an SSCCE (http://sscce.org) instead of a code extract.
    2) selection highlighting is lost because your code... doesn't handle selection. To take selection into account, you can use <tt>if (super.isRowselected(index_row)) {...}</TT>.
    Regards,
    J.

  • Problem while setting the property of column in ALV

    Hi ,
    I have created a alv dynamically and setting the properties of the column like column header text but its not getting updated .
    see the below code for ref.
    lr_column_settings ?= lr_config_table.
      data:
        lt_columns type salv_wd_t_column_ref.
      lt_columns = lr_column_settings->get_columns( ).
      data: lr_column      type ref to cl_salv_wd_column,
        lr_header      type ref to cl_salv_wd_column_header,
        ls_column type salv_wd_s_column_ref.
      loop at lt_columns into ls_column.
        case ls_column-id.
          when 'MOIST'.
            lr_column = ls_column-r_column.
        lr_header = lr_column->get_header( ).
        lr_header->set_text( 'Moisture %' ).
    I am able to set the alv properties like  visible row count etc ..
    can anybody help out in this issue
    Regards
    Yash

    I was just able to change my headers with the following:
    data:
        lt_columns     type salv_wd_t_column_ref,
        ls_column      type salv_wd_s_column_ref,
        lr_header      type ref to cl_salv_wd_column_header.
      lt_columns = lo_value->if_salv_wd_column_settings~get_columns( ).
      loop at lt_columns into ls_column.
        lr_column = ls_column-r_column.
        lr_header = lr_column->get_header( ).
        lr_header->set_ddic_binding_field( if_salv_wd_c_column_settings=>ddic_bind_title ).
        lr_header = lr_column->create_header( ).
        case ls_column-id.
          when 'CNT_LINEITEMS'.
            lr_column->r_header->set_text( 'Line Items' ).
          when 'VAL_OPEN'.
            lr_column->r_header->set_text( 'Open Amount' ).
          when others.
        endcase.
    endloop

  • Problems in setting the Secondary y-axis caliberation

    Hi,
    I have a Business Graphics (Time-Scatter Graph) Application having 2 y-axis representing the sales volume. I have set the minimum value of the primary y-axis to 0 using the <b>default series</b>, but am unable to set the minimum value of the secondary y-axis value to 25. please help me in doing the same.
    Thanks

    Hi,
    have you set the minimum values using the chart designer? Just click on the second value axis node and set the minimum value to 25 (don't forget to set minimum calculation to user defined).
    Regards, Kai

Maybe you are looking for

  • Dell Tablet Dock FW Update 0.41.23, A03 with Dell Venue 11 Pro (7130/7139) - monitors issue

    Hello, I have Dell Venue 11 Pro (7130/7139). I have installed "Dell Tablet Dock FW Update  0.41.23, A03" http://www.dell.com/support/home/us/en/19/Drivers/DriversDetails?driverId=97N0V  (previous version was Version 0.41.19, A02). Installation comple

  • Is there a way to specify where an app starts on your screen

    Is there a way to specify where the JFrame will appear on your screen at runtime by default? For me it always starts on the upper left hand corner, and I want it more in the middle.

  • Error While Doing Post Goods Issue

    Hi SD Gurus While I am Doing PGI for Standard Order, I am Getting the following Error. Version : 5.0 Clien: 800 Runtime Errors         PXA_NO_FREE_SPACE Date and Time          24.01.2008 23:50:48 Short dump has not been completely stored (too big) Sh

  • Extreme vs. Express

    My Airport Express (bought in 2004) just died. I used it to boost my primary Express station which is directly connected to my Comcast modem.  The older Express was plugged into an outlet in  another part of the house, closer to my Apple TV. I use Ap

  • I am having problems with java

    Hi I am using a banking website for online management. I use Safari. Java is required for this applet to run. When I login, the message comes Timeout! And the applet shut offs. I am attaching the message that comes when I want to login. Any solution?