How to fire diffent queries through Human Task

hi',
I am designing work-flow for my application where Sales Manager(Human Task) will get one order and it is up to him to approve or reject. I want to fire different queries for when he approve or reject, please guide me how to achieve this.
thanks
Yatan

Usually when the user approves the task workflow API will be invoked and the response will initiate the BPEL process. If you want to fire different queries you may have to use ADF or use some external portal applications and jse java to call the work flow API's and complete the task.
Steps:
1. Add the workflow process activity in the BPEL process which initiate the task, this will generate the email notification. In this notification send the portal UI link.
2. Once user access the link and approve in the back end all the workflow API's in your case you can fire other queries and then call the workfloe API's and finish the waiting the task to be complieted.
Let me know if you have any questions.
Thanks
Ramana.

Similar Messages

  • How to open and navigate between human task forms in a same page?

    Hi
    I use Oracle BPM 11.1.1.5
    I have a question about taskflows in BPM Application.
    In ADF web application, I create a sipmle task flow and insert view id and bind these to jspx pages, my pages are opend in same page when
    return an outcome.
    For exapmle I have three pages like A,B,C.
    In task flow, insert three view ids and bind to A,B,C.
    My first pages is A, and when outcome is B navigate to B, when my outcome is C then navigate to C in a same page not separate pages.
    But my problem is here.. in BPM Application when create task forms, every task has a separate task flow that there exist a single view id and a wild card flow in it.
    In BPM workspace when initiate human task form is closed, I should press refresh button to see next human task form in task list table.
    I tried to create a simple task flow and insert human task forms in it and navigate between these.. but show human task form in wrong display and don`t show some component and human task payload.
    Now, my question : How to open and navigate between human task forms in a same page like software installation?

    Having a separate Data Control for each human task is normally the case. There is a way to assign multiple human tasks to a single data control (and one task flow), but I don't think that this is going to help you with what I think you're trying to do.
    If your human task is called "EmployeeDetail", then you'd use the data control associated with this for the UI pages in the task flow diagram that is associated with this human task. For example, you might have a first page that has just the basic employee information - the fields (at least the ID field) would come from the EmployeeDetail data control. When the end user clicks "Next", you might have this UI page flow to a second UI page in the task flow diagram that has the employee's address information. You might place the address fields from the EmployeeDetail data control onto this second UI page.
    You might be asking how the work item instance can automatically flow to the next interactive activity in the process while staying inside the first interactive activity's human task's task flow diagram. This is not how it works - the task flow diagram models the end user interaction while inside a single human task that is tied to a specific interactive activity in the process. If you want a the end user to be able to move the instance through multiple interactive activities in the process in one interaction, look at "Activity Guides". Activity Guides do a nice job of this.
    Dan

  • How to use External Routing in Human Task

    Hi,
    Could you please help me knowing how to create External Routing in Human Task in SOA Composite.
    Thanks

    When defining the external routing class in the .task, you can define the name value pairs which you want to pass to the program. Here you can pass dynamic values to the class as well by reading the appropiate node from the payload. In your class the name, value would be available in the "Map propertyBag" parameters in Rajiv's example link.
    Document says:
    Map of properties — When an assignment service is specified, a list of properties can also be specified to correlate callbacks with backend services that determine the task assignees.Or if you are too lazy to map many parameters and values, you can always read the whole Task task and then use getDocument and some xml reading to determine the values. This Task is the whole document.
    API:
    http://docs.oracle.com/cd/E17904_01/apirefs.1111/e10660/oracle/bpel/services/workflow/task/model/TaskType.html#getDocument__Document says:
    Task document — The task document that is executed by the workflow. The task document contains the payload and other task information like current state, and so on.Also you need to make sure that you are maintaining the state of the assignment class, doc says:
    The assignment service class cannot be stateful because every time workflow services need to call the assignment service, it creates a new instance.Thus if you are doing multiple serial assignments one after the another and if your server restarts in between, then the approval would start at the first assignee again. Suppose in Rajiv's doc link e.g., if the task is assigned to 'wfaulk' and the server restarts then the task would be assigned back to 'jstein'. In order to prevent this you need to modify the java code and each time the variable changes it's value you need to place it in a dehydration store. Also on each action over the process you need to reinitialize the variable from that dehydration store.
    -Bikash

  • How to create tab pages in Human task Using Wizard

    hi,
    how to create tab pages in Human task Using Wizard.i need to display the personal details and the offical details in the same page with different tabs for each.it is possible to do lika this.if yes,how can we do this.
    Regards

    Stuart,
    Within a SAP Portal Tabs are not used like you want them to
    By default Tabs are used inside an iView and not to "tab" between iViews on a page...
    The most straightforward solution would be creating a custom PageLayout that you can assign to your page.
    I would sugest to implement this custom PageLayout with DIV layers and trigger "tabbing" via JavaScript eventing.
    For more infor on how to create a custom PageLayout take a look at here:
    [http://help.sap.com/saphelp_nw70/helpdata/en/42/efbac120711a71e10000000a422035/frameset.htm|http://help.sap.com/saphelp_nw70/helpdata/en/42/efbac120711a71e10000000a422035/frameset.htm]
    Good Luck,
    Benjamin Houttuin

  • How to fire two queries in one bean

    When I am trying to fire two queries using statement and result set
    it is showing error "result set is closed".
    How to fire two queries?

    Just do it. The ResultSet should be the result of the query. So you're working on a wrong reference or something.

  • Send email through human task in bpel

    hi everybody,
    I am badly stuck in sending email through human task using bpel.
    I have used reminder facility and enabled send email in .task file.but no email
    is sent so anyone please help me out and please provide me with full detailed solution what I have to do like change any xml file setting etc.
    Also I was trying to send email using email activity by changing the ns_emails.xml in .........bpel/systems/services/config & in .......integration/esb/config but I was not succeeded. So please provide me with complete solution like what parameters to pass in smtp server,port no,protocols etc and which file to change in which directory. my work is pending just because of this.
    I would be very grateful to you.
    thanks in advance.
    mansoor.

    Hi mansoor,
    <EmailAccounts xmlns="http://xmlns.oracle.com/ias/pcbpel/NotificationService"
    EmailMimeCharset=""
    NotificationMode="EMAIL">
         <EmailAccount>
              <Name>Default</Name>
              <GeneralSettings>
                   <FromName>BPEL POC</FromName>
                   <FromAddress></FromAddress>
              </GeneralSettings>
              <OutgoingServerSettings>
                   <SMTPHost>mail.oracle.com</SMTPHost>
                   <SMTPPort>25</SMTPPort>
              </OutgoingServerSettings>
              <IncomingServerSettings>
                   <Server>mail.oracle.com</Server>
                   <Port>993</Port>
                   <Protocol>IMAP</Protocol>
                   <UserName>xxxxxx</UserName>
                   <Password ns0:encrypted="false" xmlns:ns0="http://xmlns.oracle.com/ias/pcbpel/NotificationService"></Password>
                   <UseSSL>false</UseSSL>
                   <Folder>Inbox</Folder>
                   <PollingFrequency>1</PollingFrequency>
                   <PostReadOperation>
                   <MarkAsRead/>
                   </PostReadOperation>
              </IncomingServerSettings>
         </EmailAccount>

  • How to execute sql-queries through shell scripting in linux?

    How to execute sql-queries through shell scripting in linux?

    http://www.oracle.com/technology/pub/articles/saternos_scripting.html
    Two simple examples:
    #!/usr/bin/env bash
    set_orafra () {
       orafra=`echo 'set heading off
       select name from v$recovery_file_dest;
       exit' | sqlplus -s / as sysdba`
    set_orafra
    echo $orafra
    #!/usr/bin/env bash
    export ORACLE_SID=instance_name
    export ORACLE_HOME=/path_to_oracle_home_directory
    export LD_LIBRARY_PATH=$ORACLE_HOME/lib
    export PATH=/$ORACLE_HOME/bin/$PATH
    $ORACLE_HOME/bin/sqlplus -s <<EOF
    connect scott/tiger@my_instance_name
    INSERT INTO table VALUES (sysdate);
    exit
    EOFEdited by: Markus Waldorf on Sep 17, 2010 12:19 AM

  • How to change the response of human task if we are using the skip rule

    Hi,
    We have developed the request workflow in OIM11g for this we are using the Beneficiary Manager approval composite to approve the request by his manager.
    We are using the skip rule in the human task component to skip the user if the requester is beneficiary manager.
    After the skip rule is executing the the request is going to failed state because of the response it is sending to the OIM
    The skip rule is working as expected but the response sending to OIM is COMPLETED instead of APPROVE.
    Please let us know the steps to change the response to Approve after the skip rule is executed or how to add the response COMPLETED in OIM.
    Thanks

    You will have to write a conditional block outisde the task where you would check if the skip condition is met and if yes then you will have to hard code the approved conditions into the payload for the task outcome.
    <assign name="SetAutoApproveConditions">
                            <copy>
                                <from expression="string('APPROVE')"/>
                                <to variable="ApprovalTask_1_globalVariable"
                                    part="payload"
                                    query="/task:task/task:systemAttributes/task:outcome"/>
                            </copy>
                            <copy>
                                <from expression="string('COMPLETED')"/>
                                <to variable="ApprovalTask_1_globalVariable"
                                    part="payload"
                                    query="/task:task/task:systemAttributes/task:state"/>
                            </copy>
                        </assign>HTH,
    BB

  • How to use " External Routing " in Human Task (BPEL Process)?

    Hi All,
    Can anyone help me to provide any url or suggestion about "External Routing" in Human task?
    Thanks in Advance.
    Sharmistha

    Have you seen this? http://docs.oracle.com/cd/E21764_01/integration.1111/e10224/bp_workflow.htm#SOASE798 & this 11.1.1.5: BPEL External Routing
    Let me know if you need any other information.
    Cheers,
    Bikash

  • Duplicate E-mail sent through Human Task Workflow - random behaviour

    Hello All,
    We have Human Work Flow implemented for a process to wait for human intervention to approve a task.
    Whenever a new task is attempted, it goes for an email approval to a DL by sending notification.
    This should happen only once and after approval the BPEL Process should complete.
    All works fine, an email is sent and approved and process completes.
    Sometimes, the notification is sent again exactly after 24 hours, with the same content though there is no other BPEL  process triggering it.
    And on opening the Workflow List, there is nothing to approve as it has been already approved the previous day.
    Not sure why this happen. This is in Prod server and this thing happens randomly with no fixed pattern. Has been never reproduced in development box.
    No specific pattern is visible in MW logs to.
    Any help for this issue shall be helpful.
    Thanks and Regards,
    Mithun S.

    If you are having errors in your Calendar or Address Book on your BlackBerry, and you wish to delete the entire Calendar (or Address Book) database on your BlackBerry, follow the directions below. Make certain you have a good copy of your Calendar or Contacts elsewhere, as this procedure will complete delete ALL Calendar entries and/or Address Book entries on your BlackBerry.
    1. Open Desktop Manager on your PC.
    2. Open up Backup/Restore > Advanced.
    3. From Advanced you'll see a split pane screen. The left pain is what is going to be backed up from your device and the right is a list of the currently existing databases.
    3. Highlight on the right side your Address Book database (or your Calendar database) and click the arrow in the middle pointing to the left. This will copy the information over and prepare it for back-up.
    4. Once the back-up has completed, hit the Clear button at the bottom to erase and clean out the entire address book database (or Calendar database).
    5. After it's finished, it will ask you if you want to save the back-up you've created, say yes and check the device to make sure the address book (or calendar) has been properly cleared out. Now, resync the necessary contact information and you should be set to go.
    1. If any post helps you please click the below the post(s) that helped you.
    2. Please resolve your thread by marking the post "Solution?" which solved it for you!
    3. Install free BlackBerry Protect today for backups of contacts and data.
    4. Guide to Unlocking your BlackBerry & Unlock Codes
    Join our BBM Channels (Beta)
    BlackBerry Support Forums Channel
    PIN: C0001B7B4   Display/Scan Bar Code
    Knowledge Base Updates
    PIN: C0005A9AA   Display/Scan Bar Code

  • How to format the URI for Human task worklist UI project?

    This information is not easily found, so I am posting it here:
    When you click on the Administration Tab of the Human workflow component in EM, It allows you to enter an URI for the TaskDetail page.
    If you Auto-generate the taskdetail page, the URI form has to be filled out as follows:
    Application Name =worklist
    Host Name=mymachine
    HTTP Port=8001
    HTTPS Port=0
    URI=/workflow/MCRT_UI/faces/adf.task-flow?_id=MCR_T_TaskFlow&_document=WEB-INF/MCR_T_TaskFlow.xml
    (Where the Project name is MCRT_UI and the TaskFlow.xml is named as indicated and is located in the WEB-INF directory.)
    HTH,
    Matt

    Hi,
    Thanks for the post. From your post , my understanding is as below. Kindly correct me if I am wrong.
    When we go for the URL,
    http://hostname:7001/integration/worklistapp
    we will get a predefined page like, we will have 'MyTask', and this will list out all the tasks assigned for that user.
    The above procedure, you have given, will it allow us to override this adf page. so that , as soon as we go to the url, we can see our OWN custom adf page?
    Thanks,
    Sabarisri. N
    Edited by: meenalingam on Dec 20, 2011 4:24 PM

  • How do we determine if a Human Task instance in BPM Workspace is open?

    Hi All,
    An interesting one. How do we programatically determine if a BPM Workspace instance is opened for processing? I would like to ensure that a form is opened only by one user at a time, and any attempt to open the form concurrently will result in the form presenting an error message and then closing itself.
    Any ideas?
    I am posting this on the SOA form as well, as it is the BPM Workspace. Kindly overlook if this is inappropriate.
    JDev : 11g.
    Thank you.

    posting it here will help you for sure
    Business Process Management Suite
    SOA Suite

  • How to dynamically assign assignee for human task?

    I tried to use xpath expression in task editor. Expression editor suggested me to use task schema and I could not use variables from process.
    I had selected systemMessageAttributes.textAttribute1 and created “Assign” activity to initiate the attribute. This does not work. When task is started assignee is empty and task is automatically completed.
    Does anybody used this feature?

    Hi,
    You can run the soa server in debug mode by adding remote debugging parameters in startWeblogic.sh of soa server and remote debug it to check problems.
    e.g.
    +#For Debug Port+
    +if [ "${SERVER_NAME}" = "soa_server1" ] ; then+
    +JAVA_OPTIONS="${JAVA_OPTIONS} -Xdebug -Xnoagent -Xrunjdwp:transport=dt_socket,address=9023,server=y,suspend=n"+
    +export JAVA_OPTIONS+
    +fi+

  • How to take human task values and store them in DB table

    Hi, I have a workflow and when I assign the task to someone I want to store some info in a database table that I created.
    I have checked the box allow task and routing customization in bpel call backs.
    And under the on Assign message, I put an assign bpel construct and an invoke.
    in the assign construct I am trying to copy some of the elements from my humantasks_globalvariables to certain columns in my database table.
    I have found out you can't copy them directly because the humantasks_globalvariables are of type string and my database columns are anonymous. So I tried using parseEscapedXML(), when I do this I get the error that
    oracle.fabric.common.xml.xpath.XPathFunctionException: parseXML() expects the argument to be either a string or an XML element.
    The humantasks_globalvariable I am using says it's of type string but it gives me this error.
    I am obviously doing something wrong. If anybody know how to take values from a human task and store them in a database table any help would be greatly appreciated.

    In the actual database the column types are varchar2. But when I drag an invoke from the bpel constructs I associate it with by DBadapter partner link and click the button automatically create input variables. It creates an xsd and this is what one of the elements looks like.
    <xs:element name="anyvalue">
        <xs:simpleType>
            <xs:restriction base="xs:string">
                 <xs:maxLength value="20"/>
            </xs:restriction>
        </xs:simpleType>
    </xs:element>When I do an assign and try to assign the values from the humantasks_globalvariables xsd there types look like this.
    task:title string
    and the input variable I automatically generated look like this.
    ns7:anyvalue <anonymous>

  • Human tasks on working days

    How can I do to make Human task's expiration days count only working days?

    Here's a bit of Java code to generate the string for 8 hour expirations only on days of M-F. It assumes a BPEL variable named strExpirationMinutes of type string has been created. You can pass the variable in to the human task as a parameter and directly assign it via XPath on the task configuration screen.
    String tmp = "PT";
    int iMins = 0;
    int hrs8 = 60*8;
    int hrs23 = 60*23;
    int hrs24 = 60*24;
    java.util.Calendar calNow = java.util.Calendar.getInstance();
    int hours = calNow.get( java.util.Calendar.HOUR_OF_DAY );
    int minutes = calNow.get( java.util.Calendar.MINUTE );
    int dow = calNow.get( java.util.Calendar.DAY_OF_WEEK );
    // if a M-T
    if (dow>=2 && dow<=5) {   
    // if starting before 8 am - add 8 hours plus the interval between now and 8 am
    if (hours<8) {   
    iMins = (60-minutes) + ( (8-hours-1)*60 )+ hrs8;
    // if starting between 8 am and 9 am - just add 8 hours
    } else if (hours==8 || ( hours==9 && minutes==0) ) {   
    iMins = hrs8;
    // if starting between 9 am and 5 pm - just add 23 hours
    } else if (hours>=9 && (hours<17 || (hours==17 && minutes==0)) ) {   
    iMins = hrs23;
    // if starting after 5 pm - add 8 hours plus the interval between now and 8 am
    } else {   
    iMins = (60-minutes) + ( (24-hours-1)*60 ) + hrs8 + hrs8;
    // if Fri
    } else if (dow==6) {   
    // if starting before 8 am - add 8 hours plus the interval between now and 8 am
    if (hours<8) {   
    iMins = (60-minutes) + ( (8-hours-1)*60 )+ hrs8;
    // if starting between 8 am and 9 am - just add 8 hours
    } else if (hours==8 || ( hours==9 && minutes==0) ) {   
    iMins = hrs8;
    // if starting between 9 am and 5 pm - add 23 hours plus the two we days
    } else if (hours>=9 && (hours<17 || (hours==17 && minutes==0)) ) {   
    iMins = hrs23 + hrs24 + hrs24;
    // if starting after 5 pm - add 8 hours duration plus the interval between
    // now and 8 am saturday, plus the 2 we days
    } else {   
    iMins = (60-minutes) + ( (24-hours-1)*60 ) + hrs8 + hrs8 + hrs24 + hrs24;
    // if Sat
    } else if (dow==7) {   
    // add 8 hrs duration, plus the time between now and midnight sat, plus
    // all of sunday, plus 8 hrs for monday before 8 am
    iMins = (60-minutes) + ( (24-hours-1)*60 ) + hrs8 + hrs8 + hrs24;
    // if Sun
    } else {   
    // add 8 hrs duration, plus the time between now and midnight sun, plus
    // 8 hrs for monday before 8 am
    iMins = (60-minutes) + ( (24-hours-1)*60 ) + hrs8 + hrs8;
    // finish build the time string
    tmp = tmp + iMins + "M";
    // save the string to bpel proc and audit
    setVariableData("strExpirationMinutes", tmp);
    addAuditTrailEntry("strExpirationMinutes:",tmp);

Maybe you are looking for

  • How to connect my old imac G4 (no airport card) to lynksys router

    I am going to buy a new imac. I want to put my old G4 15" with no airport card installed into my daughter's room. I have a linksys wireless router WRT54G connected to my dsl modem. The linksys wireless router is linked to my imac via an ethernet cabl

  • Special G/L indicatory

    Dear Friends, When i am creating specail G/L indicator "W" the system is giving the follwoinng error "Message no. F4783 The special G/L transaction types correspond with the special G/L indicator. The following types have a specific hard-programmed m

  • Database Backup oracle

    Hi I want to take the backup of the oracle(10g) database. I am using Windows OS. I dont know what userId and Password to give in the Host Credentials in the below link. The default username and password didn't work. I have also tried expdb for taking

  • Alv grid push button functionality

    Hi all,          I have a push button as one of the fields in fieldcatalog.i am using class cl_gui_alv_grid .   I want that when that push button is clicked then some action should take place. How can i get user action on clicking that Push button. p

  • Personnel no. assignment.

    Hello, I would like to know I want to keep personnel no. as per employee sub group does it possible? Yuvraj