BPEL callbacks and validation...

Hi...
Can I use the BPEL callbacks for Human Task runtime validation?
For example, if user set payload element X with value A or B then I throw an error message and reassign the task for the same user again.
TIA.

Hi...
Ok, I got it. I can do that with the TaskService class.
Several TaskService methods receive a IWorkflowContext parameter. In the IRoutingSlipCallback I receive a Task parameter. I can't figure out how I can get a WorkflowContext from a Task. I believe that is something simple.
TIA.

Similar Messages

  • BPEL callbacks silently failing

    I've just come back from one of the SOA bootcamp sessions and encountered a problem we (being me and the guy running the lab) couldn't resolve in there.
    Software is the standalone SOASuite 10.1.3.1 on top of OLite, and JDev 10.1.3.2. Both using the Java engines they were downloaded with. Machine is a laptop running XP SP2 with 2 gigs of RAM and a further 2 gigs of swap. The firewall is disabled, and the loopback adapter has been installed as per the standard documentation.
    One lab was to make a BPEL process OrderBooking.bpel that takes a message representing an order in the Order Booking demo and do various things with it- including three asynchronous calls. The first two are in parallel to two different manufacturers to get prices, the third is to a seperate BPEL process for some human workflow to get manual authorisation of the order.
    The problem is that the process hangs at an asynchronous callback- either the human workflow never calls back or one of the price quotation services never calls back. Looking in the flow of the hanging services in the BPEL console, you can see the partner running the callback and finishing, but the caller never gets that message.
    In the case of the two parallel calls to two different partnerlinks, it seems that the first one to return will work and the second will never arrive, so it's not a particular link that fails.
    In the manual recovery screen, I can see that the messages went to the error hospital. Resubmitting from there has no effect; the messages just stay in the error list. I've pulled all of the logs around the time of the resubmission- since that's a simpler, isolated case than when the whole thing is running- and I can't see very much in there. The output is at
    http://gollum.craigshouse.net/stuff/soalogs-15-06-07.htm
    since it is too large to sensibly paste here.
    When this first started happening, we flushed things out in the BPEL console using "Purge all instances" then did a complete machine restart. Didn't help. Then I tried increasing syncMaxWaitTime to 10 minutes, deleting all other versions of the deployed OrderBooking.bpel, deleting and recreating partnerlinks and invoke/receive nodes and redeploying, still doesn't work.
    Can anyone cast some light on this?

    I think you entered an order that already exists in the table. The log files shows:
    [Caused by: [POL-3220] duplicate keys in unique/primary index]

  • Bpel callbacks(human task)

    Hi,
    i have a human task assigned to sequential list of users(2 users).On outcome updated by 1st user,i need to manipulate the task before it is routed to 2nd user.I thought the bpel callbacks would be helpful...but i could not..
    By default,the onAssigned callback is called when 1st user updates the outcome and routed to 2nd user..But it is late when we want to manipulate the task in onAssigned callback,bcoz it is already been assigned...
    OnTaskUpdated or OnTaskCompleted is not invoked..
    ...can anybody give some idea???

    Here is the is_config file :
    <?xml version="1.0" encoding="UTF-8" ?>
    - <ISConfiguration xmlns="http://www.oracle.com/pcbpel/identityservice/isconfig">
    - <configurations>
    - <configuration realmName="corp" displayName="corp Realm">
    - <provider providerType="JAZN" name="OID" service="Identity">
    <connection url="ldap://172.18.172.71:389" binddn="cn=orcladmin" password="KvrRqlQCeHrPqC60eG26eQ==" encrypted="true" />
    </provider>
    </configuration>
    </configurations>
    <property name="caseSensitive" value="false" />
    </ISConfiguration>

  • How to know the balance and validity of internet data in iPad

    How to know the balance and validity of internet data in iPad?

    Sir I m using internet in ipad4 with airtel network
    They provide me 2gb data with the amount of 255 rupees
    And now I inserted the sim in my ipad4
    And start the surfing on safari n all
    And now I wanted to know how much data is balance.

  • Need help. I am running a 27 in imac with 16 gigs of ram. Photoshop runs really fast, except when opening files. It takes 5-10 minutes to open even a small file of 1 meg. I cleaned and validated all the fonts and removed all questionable fonts. Reset pref

    Need help. I am running a 27 in imac with 16 gigs of ram. Photoshop runs really fast, except when opening files. It takes 5-10 minutes to open even a small file of 1 meg. I cleaned and validated all the fonts and removed all questionable fonts. Reset preferences and still have problem. Slow to open and in force quit "Photoshop not responding" At this point should I uninstall and start over.

    What are the performance Preferences?

  • How to Use the language function for assignment and validation

    Hi All,
    If anyone can explain me in details with example ,how to use the language function for assignments and validations?
    Thanks
    Arnab

    Hi Arnab,
    The expression is checked only for the current MDM session.
    If u login with the ABC language it will always show the ABC language no matter how many times u execute it.
    Try connecting to the DM with the XYZ language.
    It should go to the if part rather than else.
    Hope it helps.
    Thanks,
    Minaz

  • How to get the latest and valid BOM item entry from STPO

    hi,
    may i know with what condition we can get the latest and valid BOM item entry from STPO table?
    i have STLNR and IDNRK as a input. But i realized that it would return multiple entry due to the combination of  valid-from and valid till date.
    can i use stlnr,idnrk and stpoz (with the latet counter) to get the latest and valid BOM entry?
    thank you.

    Hi
    You can get the latest BOM either by using the latest valid from date DATUV or latest internal counter STPOZ
    Regards
    Shiva

  • Difference between "Binding Period" and "Validity Start/End" in Bid

    SRM Experts,
    1. We see 2 different things, "Binding Period" and "Validity Start/End" while preparing the bid. What is the differece between these?
    2. These fileds are non-editable for the bidder, while preparing the bid response. How bidder can give validity period for his quote (at header level)?
    3. We see that, the bidder can specify validity start/end date at condition level. Is it not possible to specifiy a validity of the quote at header level?
    GH

    case1: After expiration of  - binding period in RFx header:
    case2: After expiration of  - validity end period in RFx header:
    case3: After expiration of  - validity end period of RFx Response:
    I created seprate documents for each cases.
    I tried accepting the RFx response in all above 3 cases system did not give any error.
    I tried creating the PO against the RFx response in all above 3 cases system did not give any error.
    Is it correct behavior or is there any problem?
    GH

  • Help with Conditional Display and Validation

    Version 4.1.1.00.23
    Hello,
    I'm having a difficult time with a conditional display and validation I'm hoping someone can help with.
    Requirements:
    When the Start Date (Datepicker) and/or End Date (Datepicker) change then display the Change Reason (Select List) and Change Description (Textbox)
    If the page is saved without entering a Change Reason display a validation error message that the Change Reason cannot be empty (NULL)
    What I've tried
    Create a Dynamic Action on the Start Date
    Event: Change
    Selection Type:Item(s)
    Items(s): P51_START_DATE
    Condition: none
    True Action Section:
    Action: Show
    Fire on Page Load: Checked
    Show all page items on the same line: No
    Affected Items Section:
    Selection Type:Item(s)
    Item(s): P51_CHANGE_REASON,P51_CHANGE_DESC
    I've also created a Dynamic Action with similar settings for the P51_END_DATE.
    I created a Validation for the P51_CHANGE_REASON as Function Returning Error Text:
    DECLARE
        v_start_date    work_items.start_date%TYPE;
        v_end_date      work_items.end_date%TYPE;
    BEGIN
        SELECT start_date
              ,end_date
        INTO   v_start_date
              ,v_end_date
        FROM   work_items
        WHERE  work_items_id = :P51_WORK_ITEMS_ID;
        IF ( (v_start_date != TO_DATE(:P51_START_DATE,'DD-MON-YYYY') OR v_end_date != TO_DATE(:P51_END_DATE,'DD-MON-YYYY') ) AND
              :P51_CHANGE_REASON IS NULL ) THEN
            RETURN 'Change Reason must have a value';
        END IF;
    END;
    The Issue
    I tried to create another Dynamic Action to hide the P51_CHANGE_REASON and P51_CHANGE_DESC fields on page load, but when either of the date fields are changed and the validation is fired the P51_CHANGE_REASON and P51_CHANGE_DESC are hidden again.
    There are two buttons to submit the page: 'SAVE' will submit the page and stay on the page and 'SAVE_CHANGES' will submit the page and branch to the previous page (which is a report with EDIT buttons to edit the record).
    I can't get the page load Dynamic Action to NOT fire when the validation is fired.
    I hope this is clear and if not what information can I provide?
    Thanks,
    Joe

    Phil,
    Thank you for looking at this.
    Yes if the Change Reason is NULL when the edit page is displayed then the Change Reason and Change Description fields are hidden. If the Start Date (Datepicker) and/or End Date (Datepicker) change then display the Change Reason (Select List) and Change Description (Textbox). If the page is saved without entering a Change Reason display a validation error message that the Change Reason cannot be empty (NULL).
    The problem I'm having is that if no Change Reason is entered and the page is saved thereby firing the validation the Change Reason and Change Description fields are hidden again (because of the On-Load Dynamic Action to hide them). So now the user can't put in a Change Reason...unless they change one of the date fields again which isn't going to be accepted.
    Is there a way to determine if a validation error was fired and be able to use that on the On-Load Dynamic Action to hide the two fields? Something like...If the validation fired then don't run?
    Please let me know if I'm still confusing you.
    Thanks,
    Joe

  • Name of the table where can get the two fields Valid-From and Valid-to for

    Hi gurus
    I want name of the table where I can get the two fields Valid-From and Valid-To and their relation ship with the header table in BOM
    Regards
    Kaisar

    You can only get the Valid from date from the table STKO.
    To get the valid to date, you have to take one day less than the valid-from date of the next record for the same BOM.
    Alternatively use the Function module:
    CSAP_MAT_BOM_READ
    It will give both valid from and valid to dates in the tables parameter: T_STKO
    Regards,
    Ravi
    Edited by: Ravi Kanth Talagana on Jul 2, 2008 4:37 PM

  • File Browse Item and validation

    Hello
    I have a page with multiple items and validations.
    One of the items is "File Browse..."
    When I select a file on my computer and submit the page, a new record is created in "APEX_APPLICATION_FILES".
    In the page I have a process that saves the blob from "APEX_APPLICATION_FILES" into one of my DB table and then I delete that record.
    That is correct.
    But, if one of my validations is triggered, the record is still created in "APEX_APPLICATION_FILES" and since the validation blocks the execution of my process, the record is not deleted.
    Normally, it should be deleted to prevent the table from taking too much space.
    Is there any DB Job that "cleans" the table?
    Thank you
    Max

    Hi
    I just tough I could do the following validation as the very last one.
    Validation type:
    "Function returning error text"
    Validation Expression:
    begin
       delete from APEX_APPLICATION_FILES
       where name = :P1_MY_BROWSE_ITEM;
       return null;
    end;Condition :
    "Inline validation errors displayed"
    Is there a "cleaner" or better solution I should use ?
    Thanks
    Max

  • Creating a Web Service to handle flow between BPEL process and XML Gateway

    I am new to Web Services. I have never created one, yet I have the task of designing the following for a project.
    Any help as to what steps I need to take would be very very helpful. There is a lot of information on XML, SOA and WSDL out there that it can get very confusing, and sometimes you just need someone to point the way
    What I need to do is create a Custom Send and a Custom Receive Program (both web services) handle the message flow between an Enterprise BPEL processes and a Deployed XML Gateway.
    BPEL compresses this XML business object document (for faster transmission), and sends remotely to this Custom Receive web service, which in turn calls a decompress java program and then send the document to the XML gateway inbound web service.
    The Custom Send web service does just the opposite. It needs to take the business object document from XML gateway, call the compress java program and then send to the Enterprise BPEL.
    In a nutshell...these Custom Send/Receive Web services handle the message flow between the Enterprise BPEL process and the Deployed XML Gateway.
    What I need help on...
    -Creating this in JDeveloper- where do I get started?
    -How does a web service receive a compressed file sent to me via BPEL? Does it just sit there waiting for it?
    -Is this a synchronous or asynchronous design?
    -Will this be 2 web services (Send and Receive) or do I make 1 with 2 functionalities
    -How do I call the java compress/decompress program within the web service? (this java function is already created and ready to be called)
    -Is this decompressed business object file an XML schema and an XML message? Or just a message?
    -I need to send this to the XML Gateway Web Service to load. How does that work?
    -I have a Generic XML Gateway WSDL file...I assume I need to take all the info I get and map it to this template? Is this true? How do I do that?
    Like I said, any help would be appreciated. Links answers to my many questions would be fabulous.
    -Jason

    If you are talking about simple XML transformation of the SOAP payload between the client calling your service and the final destination of the message you are routing, the ESB approach may be a better fit.
    If you have more complex transformation in mind, with major processing and rework of the message in the intermediary, you may be better of with using the POJO approach. Write your service and embed a callout to the other service in your implementation. If the two services share the same Java Model, you may even be able to re-use the same Java Bean.
    To get SOAP Element instead of Java bean, you just need to use the noDataBinding option with either genProxy and topDownAssemble (or assemble). See the WS-Guide [1] for details. Chapter 18 will give you all the details about the different WSA command line parameters.
    Hope this helps,
    -Eric
    [1] http://download-west.oracle.com/docs/cd/B31017_01/web.1013/b28974/toc.htm

  • Looking to use BPEL Instance and counter inside of a transformation

    I'm trying to find a way to include the BPEL instance and a counter within a BPEL transformation to create a unique key.
    Example, picking up files with multiple lines and no unique keys, each file is processed as a unique BPEL instance (key 1), and would like to use the row number (of the file, but not specified in the file) as the second key.
    My process takes a file from a file adapter and loads it into a database adapter if that helps.
    Any ideas would be appreciated.

    We ended up finding a Node-set Function -> Position to return the position inside of the dataset.

  • Valid from and Valid to are not getting copied to follow up document.

    Hi Experts,
    I am creating job quote as a follow up document from master quote.All are getting copied from the master quote to job quote,but valid from and valid to dates are not getting copied from master quote,instead it is calculating the date from date profile rules.
    But I need to transport the dates from Master Quote to Job Quote.
    Please advice.
    Thanks,
    Adi.

    Hi,
    You need to implement CRM_COPY_BADY for that. Please refer to:
    Re: create a new follow up complaint to the earlier completed complaint
    Regards,
    Nicolas.

  • Valid from and valid to properties under history preservation transform

    I have created_dt and last_updated both date columns in source table and also in target table.
    Now under history preservation transform for Date columns:
    For "Valid from" and "valid to" properties: which column should i pick?
    how can i use created_dt and last_updated columns under history preservation?
    What is current flag property, should i leave this blank if i don't have any flag "bit type" column like indicator in source or target table.
    My Dataflow has:
    Source_table -> Qry_Transform -> Table_comparison > history_preservation - > Key_gen - > Target_table.

    Valid from and Valid to in History Preservation transform deals with SCD (slowly changing dimensions).
    In most of the scenarios, Valid From comes from the source (as Effective From date) for which the dimension has a particular value.
    Eg:
    SALES REP, Region, Effective From
    A, California, 01.01.2011
    Valid To column in History Preservation is the default value that you provide inside. In case of preserving history of an update, Valid To column of the old record can have the Valid From value of the new record, or one day before that. You have option to set the same in History Preservation.

Maybe you are looking for