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);

Similar Messages

  • Trying to get Human Tasks to work in a BPEL process

    I have a workflow that needs to include a human review point for quality control purposes.
    I have added a "Human Task" at that point, and that seems to partially work. I can see the tasks in BPM and I can Approve them. What's not working is that after the approval, the next step in the BPEL flow isn't getting applied.
    Perhaps related is that I can see the human task was executed from within the SOA Console. However, I don't see the BPEL instance that it was associated with. I only seem to be able to see instances that have completed.
    So, I'd appreciate any help you can provide on what I might be doing wrong or how to best diagnose what's going on.

    Ok, I ran my data through again, trying to pay attention to what's going on in the console log and in the oc4j/diagnostic log. I do see various stack traces and diagnostics - none of which are directly in my code. However, I see lots of diagnostic stuff coming out often - even when I'm not doing anything, so it's hard for me to say for sure they're related.
    I run OC4J out of JDeveloper using "Debug Server Instance". I have deployed my web service and BPEL stuff to the OC4J.
    Here's the stuff I see that my help diagnose what's going on.
    At about the timeframe where the human task is being executed within the BPEL flow:
    In the "Debugging: DefaultServer - Log" tab in Jdeveloper I see:
    Aug 15, 2008 11:11:17 AM com.collaxa.cube.CubeLogger error
    SEVERE: <DispatchHelper::handleMessage> failed to handle message
    javax.ejb.EJBException: An exception occurred during transaction completion: ; nested exception is: javax.transaction.RollbackException: Timed out
    javax.transaction.RollbackException: Timed out
         at oracle.oc4j.transaction.TransactionImpl.checkForRollbackOnlyWhileInCommit(TransactionImpl.java:714)
         at oracle.oc4j.transaction.TransactionImpl.doCommit(TransactionImpl.java:341) ...
    This is followed by some lines of the form:
    Aug 15, 2008 11:11:17 AM com.collaxa.cube.CubeLogger error
    SEVERE: <BaseScheduledWorker::process> Failed to handle dispatch message ... exception ORABPEL-05002
    Message handle error.
    An exception occurred while attempting to process the message "com.collaxa.cube.engine.dispatch.message.invoke.InvokeInstanceMessage"; the exception is: An exception occurred during transaction completion: ; nested exception is: javax.transaction.RollbackException: Timed out
    This error is a wrapper for an exception thrown by the message handler.
    Please check the exception trace in the log (with loggers set to debug mode).
    ORABPEL-05002
    Message handle error.
    An exception occurred while attempting to process the message "com.collaxa.cube.engine.dispatch.message.invoke.InvokeInstanceMessage"; the exception is: An exception occurred during transaction completion: ; nested exception is: javax.transaction.RollbackException: Timed out
    This error is a wrapper for an exception thrown by the message handler.
    Please check the exception trace in the log (with loggers set to debug mode).
         at com.collaxa.cube.engine.dispatch.DispatchHelper.handleMessage(DispatchHelper.java:176)
         at com.collaxa.cube.engine.dispatch.BaseScheduledWorker.process(BaseScheduledWorker.java:82) ...
    At around the time I approved the task in the BPM console, I see
    Aug 15, 2008 11:13:11 AM oracle.j2ee.util.AnnotatedLogger logWithThrowable
    WARNING: J2EE JNDI-00009
    Aug 15, 2008 11:13:50 AM oracle.adfinternal.view.faces.renderkit.rich.SimpleSelectOneRenderer _getSelectedIndex
    WARNING: Could not find selected item matching value "" in RichSelectOneChoice[UIXEditableFacesBeanImpl, id=navList1]
    Aug 15, 2008 11:13:50 AM oracle.adfinternal.view.faces.renderkit.rich.SimpleSelectOneRenderer _getSelectedIndex
    WARNING: Could not find selected item matching value "" in RichSelectOneChoice[UIXEditableFacesBeanImpl, id=navList1]
    Aug 15, 2008 11:13:53 AM oracle.jbo.uicli.mom.JUApplicationDefImpl logCpxUsageIdCollision
    SEVERE: Both validatefeedtaskflow.DataBindings.cpx and validatefeedtaskflow.DataBindings.cpx use the same usageId: validatefeedtaskflow_taskDetails1PageDef
    FIX: Use validatefeedtaskflow_validatefeedtaskflow_taskDetails1PageDef as the usageId in validatefeedtaskflow.DataBindings.cpx
    08/08/15 11:13:53 InvokeActionBean.reloadParentBrowser start
    08/08/15 11:13:53 InvokeActionBean.reloadParentBrowser end
    Aug 15, 2008 11:13:54 AM oracle.adfinternal.view.faces.renderkit.rich.SimpleSelectOneRenderer _getSelectedIndex
    WARNING: Could not find selected item matching value "" in RichSelectOneChoice[UIXEditableFacesBeanImpl, id=navList1]
    Aug 15, 2008 11:13:54 AM oracle.jbo.uicli.mom.JUApplicationDefImpl logCpxUsageIdCollision
    SEVERE: Both validatefeedtaskflow.DataBindings.cpx and validatefeedtaskflow.DataBindings.cpx use the same usageId: validatefeedtaskflow_taskDetails1PageDef
    FIX: Use validatefeedtaskflow_validatefeedtaskflow_taskDetails1PageDef as the usageId in validatefeedtaskflow.DataBindings.cpx
    Aug 15, 2008 11:13:55 AM oracle.adfinternal.view.faces.renderkit.rich.SimpleSelectOneRenderer _getSelectedIndex
    WARNING: Could not find selected item matching value "" in RichSelectOneChoice[UIXEditableFacesBeanImpl, id=navList1]
    Aug 15, 2008 11:13:55 AM com.evermind.server.http.HttpMessages commonIOExceptionThrown
    WARNING: The application: ValidateFeedTaskFlow threw a Broken pipe IOException. Though this error may occur many times, this message is only logged once. To log additional occurances of this exception, set the log level of the com.evermind.server.http.EvermindHttpServletResponse trace logger to Level.FINE or finer.
    java.io.IOException: Broken pipe
         at sun.nio.ch.FileDispatcher.write0(Native Method)
         at sun.nio.ch.SocketDispatcher.write(SocketDispatcher.java:29) ...
    In the OC4J/diagnostic.log around the time of the approval, I see a lot (and I mean a lot) of lines of the form:
    [2008-08-15T11:13:55.332-06:00] [j2ee] [NOTIFICATION] [] [applications.ValidateFeedTaskFlow] [tid: 24] [ecid: 0000Hj7MyYX000000000000000030eCWL00000003y,0] [APP
    : ValidateFeedTaskFlow] ValidateFeedTaskFlow: Broken pipe
    After a bunch of the above (only varying in timestamp), I see
    2008-08-15T11:13:55.814-06:00] [j2ee] [NOTIFICATION] [J2EE JSP-00052] [jsp] [tid: 18] [ecid: 0000Hj7MyxG000000000000000030eCWL000000048,0] [APP: worklist] [arg: /templates/panelPageTemplate.jspx] Using the ProviderURI /templates/panelPageTemplate.jspx that is returned from custom provider for processing requests.
    [2008-08-15T11:13:55.815-06:00] [j2ee] [WARNING] [J2EE HTTP-00022] [http] [tid:24] [ecid: 0000Hj7MyYX000000000000000030eCWL00000003y,0] [APP: ValidateFeedTaskFlow] [arg: ValidateFeedTaskFlow] [arg: Broken pipe] The application: ValidateFeedTaskFlow threw a Broken pipe IOException. Though this error may occur many times, this message is only logged once. To log additional occurances of this exception, set the log level of the com.evermind.server.http.EvermindHttpServletResponse trace logger to Level.FINE or finer.[[
    java.io.IOException: Broken pipe
    at sun.nio.ch.FileDispatcher.write0(Native Method)
    at sun.nio.ch.SocketDispatcher.write(SocketDispatcher.java:29)
    I'm happy to run things again or dig for specific information that might help in diagnosing the problem. I can also send the complete files if that helps.
    Thanks in advance.

  • In human task, dynamically assign group doesn't work

    Oracle SOA 11.1.1.4
    My bpel process invokes a human task.
    On the human task Assignment tab, I assigned 3 users (by name), 1 group (by expression).
    The group is configured in LDAP
    When I tested the bpel process, I entered the group and other data required.
    From the worklist app, I see the task listed. It is assigned to the 3 users, but not the dynamically passed-in group.
    From the Audit trail, I saw all data I entered (include the group). Everything seems correct, but I still can’t make the dynamically-pass-group work.
    If I assign the group by name in human task, it works fine.
    The problem is: dynamically assign group doesn't work.
    Please kindly advice.

    Yes, it is possible assign a group as participant of some human task, passing the group name as parameter.
    I have tested just now.
    It works pretty well in SOA 11.1.1.4 (BPEL or BPM).
    Make sure add a data parameter in your human task definition and pass a valid group name to it.
    At the Assignment tab, in the participants' list, add a group, data type by expression, and set the value to the right xpath expression to the corresponding parameter.
    For example: /task:task/task:payload/task:group
    If it is not working look the SOA log files, probably you'll find some information about the error there. Maybe there is some problem with your jazn.com configuration.
    You can also test if there is something wrong related to the group name, trying to transfer some task to the same group by the worklist.

  • Unable to select an outcome in human task

    Folks,
    I’ve been trying to get a simple human task to work but as of yet I am unable to. I’ve followed the instructions in the BPEL Process Manager Developer’s Guide (10.1.3) and am using the “Auto Generate Simple Task Form” to create the display.
    I can deploy the process without incident and am able to claim the task and see parameters passed in. I am not, however, able to see or select the outcome (which I have defined as ‘Approve’ and ‘Reject’).
    The .task file is as follows:
    <?xml version = '1.0' encoding = 'UTF-8'?>
    <taskDefinition targetNamespace="http://xmlns.oracle.com/human_work"
                    xmlns:xp20="http://www.oracle.com/XSL/Transform/java/oracle.tip.pc.services.functions.Xpath20"
                    xmlns:ora="http://schemas.oracle.com/xpath/extension"
                    xmlns:orcl="http://www.oracle.com/XSL/Transform/java/oracle.tip.pc.services.functions.ExtFunc"
                    xmlns:task="http://xmlns.oracle.com/bpel/workflow/task"
                    xmlns:xsd="http://www.w3.org/2001/XMLSchema"
                    xmlns="http://xmlns.oracle.com/bpel/workflow/taskDefinition">
       <name>human_work</name>
       <id>${domain_id}_${process_id}_${process_revision}_human_work</id>
       <title>Task!</title>
       <priority>3</priority>
       <process processId="" processVersion=""/>
       <routingSlip xmlns="http://xmlns.oracle.com/bpel/workflow/routingSlip">
          <globalConfiguration>
             <owner>oc4jadmin</owner>
             <earlyCompletion>
                <outcome>APPROVE</outcome>
                <outcome>REJECT</outcome>
             </earlyCompletion>
          </globalConfiguration>
          <participants isAdhocRoutingSupported="false">
             <participant name="taskApprover">
                <resource isGroup="true" type="STATIC">oc4j-administrators</resource>
                <resource isGroup="true" type="STATIC">oc4j-app-administrators</resource>
             </participant>
          </participants>
          <notification includeTaskAttachments="false" actionable="false"
                        secureNotifications="false"/>
       </routingSlip>
       <workflowConfiguration xmlns="http://xmlns.oracle.com/bpel/workflow/configuration"
                              xmlns:ns0="http://xmlns.oracle.com/test_humanTask2">
          <outcomes>
             <outcome>APPROVE</outcome>
             <outcome>REJECT</outcome>
          </outcomes>
          <restrictedActions/>
          <payload xmlSchemaDefinition="human_work_payload.xsd">
             <messageAttribute name="taskInput" attributeType="ELEMENT"
                               type="ns0:taskInput" updatable="false"/>
          </payload>
          <bpelEventListener>false</bpelEventListener>
       </workflowConfiguration>
    </taskDefinition>Any help you all can provide is greatly appreciated.
    Thanks in advance,
    Joseph

    Is there any update to this thread? I am seeing the same or similar problem. I'm using BPEL 10.1.3.3.
    I've created a task with two possible custom outcomes "BE" or "NOT_BE". Anyone in the oc4j-administrators group can claim the task instance. I use the auto task form generator.
    As in the thread, I can claim the task instance (as oc4jadmin) and the task form displays (including one parameter that I defined in the payload); however, the only Task Action available in the dropdown list for selection is "Release". My expectation would be to see "BE", "NOT_BE", and "Release" as available actions.
    Using bpeladmin yields identical results.
    Here is my task definition:
    <?xml version = '1.0' encoding = 'UTF-8'?>
    <taskDefinition targetNamespace="http://xmlns.oracle.com/HumanTask1" xmlns:xp20="http://www.oracle.com/XSL/Transform/java/oracle.tip.pc.services.functions.Xpath20" xmlns:ora="http://schemas.oracle.com/xpath/extension" xmlns:orcl="http://www.oracle.com/XSL/Transform/java/oracle.tip.pc.services.functions.ExtFunc" xmlns:task="http://xmlns.oracle.com/bpel/workflow/task" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://xmlns.oracle.com/bpel/workflow/taskDefinition">
    <name>HumanTask1</name>
    <id>${domain_id}_${process_id}_${process_revision}_HumanTask1</id>
    <title>To Be or Not to Be</title>
    <priority>3</priority>
    <process processId="" processVersion=""/>
    <routingSlip xmlns="http://xmlns.oracle.com/bpel/workflow/routingSlip">
    <globalConfiguration/>
    <participants isAdhocRoutingSupported="false">
    <participant name="Deep Thinker">
    <resource isGroup="true" type="STATIC">oc4j-administrators</resource>
    </participant>
    </participants>
    <notification includeTaskAttachments="false" actionable="false"
    secureNotifications="false">
    <action name="ASSIGN" recipient="ASSIGNEES"><![CDATA[concat(string('Task '), /task:task/task:title, string(' requires your attention. Please access the task from the worklist application.'))]]></action>
    <action name="COMPLETE" recipient="CREATOR"><![CDATA[concat(string('Task '), /task:task/task:title, string(' requires your attention. Please access the task from the worklist application.'))]]></action>
    <action name="ERROR" recipient="OWNER"><![CDATA[concat(string('Task '), /task:task/task:title, string(' requires your attention. Please access the task from the worklist application.'))]]></action>
    </notification>
    </routingSlip>
    <workflowConfiguration xmlns="http://xmlns.oracle.com/bpel/workflow/configuration"
    xmlns:xsd="http://www.w3.org/2001/XMLSchema">
    <outcomes>
    <outcome>BE</outcome>
    <outcome>NOT_BE</outcome>
    </outcomes>
    <restrictedActions/>
    <payload xmlSchemaDefinition="HumanTask1_payload.xsd">
    <messageAttribute name="FoodForThoughtParm" attributeType="SIMPLE_TYPE"
    type="xsd:string" updatable="false"/>
    </payload>
    <bpelEventListener>false</bpelEventListener>
    </workflowConfiguration>
    </taskDefinition>

  • BPEL Human task Tutorial 10.1.3.5 SOA

    Hi,
    I have been tasked with setting up an example of BPEL human task workflow working on SOA application server 10.1.3.5.
    Does anyone have any examples of this? I would prefer something that is stand-alone and not dependent on other creations or deployments. I found one for 11g however I need to have it used on SOA app server, not WebLogic. I wouldn't mind following this guide below, but I am unable to find out how to use JDev11g to deploy on SOA 10g app server.
    http://download.oracle.com/docs/cd/E12839_01/integration.1111/e10275/intro.htm
    Thank you for any help / support.
    Mike

    Hi,
    Thanks for that. In here is what I found on the web also, OrderBooking which is a large application. The 11g example just streamlines the process with just the BPEL "human task" example which is what I was tasked to do.
    Thanks though

  • Process and Human task deployment version difference.

    Hi,
    I have a small issue in deploying the process and taskform. Problem is my BPEL Process deploys fine and shows the version 1.0 my TaskForm also deploys fine but somehow the version of this shows as 2.0. When I check the App Server the TaskForm shows as 2.0. Now when I log into worklist and go to task details I see an error saying /1.0/TaskForm.jsp not found. It's because the TaskForm is deployed as /2.0/TaskForm. Now if I manually go and change the context of the task form in default.xml file to 1.0 worklist shows the jsp form. Before deploying the Process I tried deleting the output directory, undeployed the form for the server, undeployed the BPEL Process and restarted everything but some how the form is always deployed as 2.0.
    When I manully force the BPEL Process to deploy as 2.0 also all works fine.
    Can someone please tell me what might be the issue. I believe it's something JDev. do when deploying the process that somehow incremenst the TaskForm version.
    I even installed a fresh JDev. version but nothing works. Is something cached in the process and if so where to look and fix it.
    If I create any new process with Human task it works fine. It's something with my current process that's not right.
    Thanks

    Hi All,
    The problem was caused by the JDev version I used.
    I used the version 10.1.3.4., but found a thread which suggested that I should use 10.1.3.3. instead. And it works!
    Here is the thread where I found this info:
    SOA Order Booking build properites - BindWebApp error: javax.management.Ref
    Peter Neumann

  • Problem using Human Task

    I have created the BPEL work flow with human task which works for serial flow.
    I have 2 approvals,
    i want to get status of each approval after they approves.
    Please let me know what to do as i was not able to find any example for multiple approvals.
    Thank you.
    Edited by: user11187811 on Nov 11, 2009 11:25 PM
    Edited by: user11187811 on Nov 12, 2009 1:46 AM

    This is a problem with switch inside a switch.
    When I replaced the switch in the human task with other activities, it works fine.
    It throws a problem just having a process starting with a switch and a workflow within one part of the switch

  • OIM 11g - Email Notifications configured in human task is not working

    Hi,
    My requirement is to send email to the assignee whenever a request is assigned to the user. I created a custom bpel workflow and configured email notiifcation in the human task for the status 'assign'. I have configured Email driver with following properties:
    Sender Addresses = <[email protected]>
    Default Sender Address = <[email protected]>
    Outgoing Mail Server = <Exchange server host>
    Outgoing Mail Server Port = 25
    Outgoing Mail Server Security = none
    Outgoing Default From Addr = <[email protected]>
    I have also set the Notification Mode to 'Email' in Workflow Notification Properties.
    However when a request is assigned to the user, email notifications are not sent.
    I do not see any errors in the logs. In Enterprise Manager console I navigated to SOA Infrastructure Home > Human Workflow Engine > Notification Management and I could see outgoing email notifications corresponding to the workflow instance with the status showing 'Sent'.
    Also the Exchange server that is being used has already been tested for provisioning emails from OIM and it works fine for provisioning.
    Any pointers/troubleshooting tip to resolve this issue is greatly appreciated.
    Regards
    Deepa

    Hi,
    My requirement is to send email to the assignee whenever a request is assigned to the user. I created a custom bpel workflow and configured email notiifcation in the human task for the status 'assign'. I have configured Email driver with following properties:
    Sender Addresses = <[email protected]>
    Default Sender Address = <[email protected]>
    Outgoing Mail Server = <Exchange server host>
    Outgoing Mail Server Port = 25
    Outgoing Mail Server Security = none
    Outgoing Default From Addr = <[email protected]>
    I have also set the Notification Mode to 'Email' in Workflow Notification Properties.
    However when a request is assigned to the user, email notifications are not sent.
    I do not see any errors in the logs. In Enterprise Manager console I navigated to SOA Infrastructure Home > Human Workflow Engine > Notification Management and I could see outgoing email notifications corresponding to the workflow instance with the status showing 'Sent'.
    Also the Exchange server that is being used has already been tested for provisioning emails from OIM and it works fine for provisioning.
    Any pointers/troubleshooting tip to resolve this issue is greatly appreciated.
    Regards
    Deepa

  • Working with Human Task Service

    Hello everybody,
    I'm trying to do some exercises with Human Task Service and ADF, but I have no clue how to do it. Ok here is what I'm trying to do. I've got a small BPMN process, which calls a WebService and gets a list of locations. Afterwards the locations are passed to the user task. A location is composed of the following elements: street (string), city (string) and a zipcode (integer).
    The user should be able to select a startLocation, an endLocation and a startDate when he wants to do his trip. The result should be passed to the process.
    So far I've created an Human Task with the following parameters: a list of locations, a start location, an end location and a date. I used the autocreation tool to create an adf form. The tool always creates a single table for the locationList and uses input fields for all the elements of startLocation and endLocation. But I want to use 2 selectOneChoice lists, one for startLocation and one for endLocation. An item in the selectOneChoice list should be a single String containing street, city and zipcode.
    Could somebody tell me the basic steps to do so? Where and how can I do the transformation of a 'location' into a single string and vice versa? How to bind a selectOneChoice to locationList and startLocation?
    Thank you in advance, Chris

    You should be able to drag the parameter of the method over to the page and choose to drop it as a selectOneChoice component - you'll then need to bind it to a data control that will provide the possible list of values.
    Here is how you would do this conversion of a parameter to a dropdown list in an ADF BC case:
    http://blogs.oracle.com/shay/2009/12/adf_query_with_parameters_and.html

  • Human Task service not working

    Hi helping hands,
    I recently stepped into BPEL world.
    I created a human task for approve & reject, when I try to run this in BPEL engine, its giving me orabpel-10561 error and the msg: creator is empty.
    I tried to find this error code,however I wasnt getting anything from anywhere.
    I use SOA suite 10.1.3.1.
    If possible give me a link, to learn about human task.
    Thanks, Viki

    http://download.oracle.com/docs/cd/B31017_01/integrate.1013/b28981/workflow.htm#BABFICJF
    This will give you a good overview of the human task

  • BPM human task actionable user notification email not working

    Hi ,
    I am triing to send actionable email notification to assignees through the notification tab of the human task. The email settings in the em console has done fine so that I am getting the notification email without any fail.
    But the problem over here is the actionable buttons / links (Like Approve or Reject ) are not there inside the email body.
    I have checked the make notification actionable check box in jdev human task as well as configured the actionable email address in the server em console.Still the email body is not having the action items.
    email body is here
    Task Notification PendingUser Notification requires your attention.
    Access this task in the Workspace Application
    <PendingUser Notification > above is the task title.
    Please suggest
    many many thanks
    Tuku

    Hi All,
    I got the solution for it. Now the assignee is able to get the actionable email.
    the mistake i did is during the human task notification tab configuration I have put separate email id in the recipient column of first row.You need to do is ,choose Assignees from the drop down value , check the check box make notification actionable, then set the proper email in the email attribute property of the assigned user (user creation time).
    Thanks
    Tuku

  • How to retrieve a due date from a human task and create a report in BAM with it

    Hi.
    I'm working with a BPM process, the requirement is that I have a human task and a working hours limit to complete it. For this purpose I created a calendar in the bpm workspace and I've associated it to a role that executes that human task. Now I need to know how can I pass it into a data_object in BAM in order to create a Dashboard that lets me know whether a human task was completed just in time.
    I'm using Oracle SOA Suite 11.1.1.7.0
    Thank you.

    There's a correction to the code. For whatever reason doing it that way still sets it as a "remind me when" parameter. Use the following code instead:
    tell application "System Events" to set FrontAppName to name of first process where frontmost is true
    if FrontAppName is "Reminders" then
              tell application "Reminders"
                        set duedate to (current date) + (2 * days)
      make new reminder with properties {name:"New Reminder", due date:duedate}
              end tell
    else
              display dialog "failed to make new reminder!"
    end if

  • Human Task Bulk API calls from ADF Entity Object

    Dear all,
    Jdev: 11.1.1.7.1
    We have a requirement where in human task APIs need to be invoked on status changes of an ADF Entity (EO). We presently achieve this in the afterCommit() method and all is well.
    But we are looking to leverage the Human Task bulk update APIs and am wondering how to do that.
    The EO does support a batch mode - Is there a batch mode API that we can override to place the bulk update API call?
    Thanks

    in version 11.1.1.6 getInputStream() and getContent() do not work, this is know bug you can find in the oracle support at
    https://support.oracle.com/epmos/faces/ui/km/SearchDocDisplay.jspx?_afrLoop=175895926830291&type=DOCUMENT&id=1451100.1&displayIndex=8&_afrWindowMode=0&_adf.ctrl-state=tlzphlagm_69
    there you can find a .zip file with a full example code.
    Actually Oracle does not consider it a bug:
    "This issue was reviewed by Engineering in Bug 13873092 and is not considered a bug. There is a workaround to retrieve task contents through 'WFTaskUpdate' Servlet as described in the attached Sample project."
    but in my opinion it is a very big bug endeed, and it drove me mad for days! :(
    Anyway here is a snippet with the workaroud in case you do not have access to the oracle support site:
    if att is you attachment and wfContext is your workflow context set somewhere
    AttachmentType att;
    IWorkflowContext wfContext;
    instead of doing this
    InputStream inputStream = att.getInputStream();
    do this
    String contextId = wfContext.getToken();
    String attachmentURL = WFUtils.getTaskUpdateURL(att.getTaskId(), contextId, "" + att.getVersion(),att.getName(),
    Constants.WFTASK_QUERY_ATTACHMENT_BUTTON_KEY_NAME);
    if ( attachmentURL == null ) {
    System.out.println("Unable to generate URL to get attachmentcontent");
    try {
    URL url = new URL(attachmentURL);
    URLConnection conn = url.openConnection();
    InputStream inputStream = conn.getInputStream();
    } catch ( Exception e ) {
    e.printStackTrace();
    hope this helps
    Massi

  • Reading Human Task Title from two property files

    Good day,
    I have a problem with displaying human task title in multiple languages ,I tried the oracle workflow-114-MLSSample and deployed it over soa suite version 11.1.1.6.0 but the sample didn't work.
    have any body done with this isse.
    regards.
    Edited by: a.rababah on Dec 12, 2012 11:13 PM

    we need to perform the following steps which not mentioned in the sample :
    1. Login to EM link using Admin username/password:
    2. Select <domain>-> SOA-><SOA Infra> and right click:
    SOA Administration->Workflow Task Service Properties
    3. On the Right Hand Side select:
    Advanced->More Workflow Taskservice Configuration Properties
    then
    oracle.as.soainfra.config->Server:<servername>->WorkflowConfig->human-workflow
    On the Right Hand side click on the Operations tab and then click on the CreateLocale operation.
    4. Provide the following parameters:
    Language: de
    defaultFlag: false
    enableFlag: True
    5. Click on Invoke.

  • Unable to deploy BPM projects with human tasks from BPC

    I’m trying to edit and deploy a BPM process from Business Process Composer (web based tool). To do it, I followed the steps below:
    1.     I created I project in JDeveloper
    2.     I created the Human task from using the “Auto-generate task form” option
    3.     I converted it to a template
    4.     I published it to BPM MDS
    5.     On Business Process Composer I created I new project based on my published template
    6.     And I finally I deployed it with no errors.
    When I ran the BPM it creates I human task but I’m not able to access its form on Business Process Workspace.
    On Business Process Workspace I can see the task created by my BPM process, but when I click on it to access its form I get a 404 message (message below).
    Error 404--Not Found
    From RFC 2068 Hypertext Transfer Protocol -- HTTP/1.1:
    10.4.5 404 Not Found
    The server has not found anything matching the Request-URI. No indication is given of whether the condition is temporary or permanent.
    If the server does not wish to make this information available to the client, the status code 403 (Forbidden) can be used instead. The 410 (Gone) status code SHOULD be used if the server knows, through some internally configurable mechanism, that an old resource is permanently unavailable and has no forwarding address.
    I think this error occur because my Task form project was not deployed. To fix it I undeployed all the applications and then I deployed the BPM application with all its tasks forms from JDeveloper. It worked fine (I can actually access the task form on Business Process Workspace), but now I’m not able to edit the BPM process on Business Process Composer anymore.
    Then I finally repeated the steps 3 to 6 on top of this post in order to make the BMP process editable on Business Process Workspace but this time I receive the error at the end of this post taken from server log.
    No matters if I publish the project on MDS BMP repository as a template project or as non template project. I always have the same problem.
    So, how can I use a BPM project that contains Human Tasks forms on Business Process Composer?
    I’m using:
    •     JDevelopper: 11.1.1.5
    •     Oracle Soa Suite 11.1.1.5
    Error:
    <Error> <ServletContext-/soa-infra> <AUSDCCMTPRF03> <soa_server1> <[ACTIVE] ExecuteThread: '10' for queue: 'weblogic.kernel.Default (self-tuning)'> <weblogic> <> <daba687c30fc2ae1:5f5821e2:131915bbc92:-8000-000000000001c442> <1312478914395> <BEA-000000> <Error during deployment
    oracle.fabric.common.FabricException: Deployment Failed: Error occurred during deployment of component: AssignVendorETATask to service engine: implementation.workflow, for composite: AlertBPMProject: ORABPEL-30123
    Error while deploying task metadata.
    The task namespace http://xmlns.oracle.com/AlertBPMApplication/AlertBPMProject/AssignVendorETATask is already used as a template namespace.
    Check if the project you are deploying now is a template project. Please avoid deploying template projects. Use a different namespace for the task definition to fix the problem or set the suffixNamespace flag to true.
    : Error while deploying task metadata.
    The task namespace http://xmlns.oracle.com/AlertBPMApplication/AlertBPMProject/AssignVendorETATask is already used as a template namespace.
    Check if the project you are deploying now is a template project. Please avoid deploying template projects. Use a different namespace for the task definition to fix the problem or set the suffixNamespace flag to true.
         at oracle.integration.platform.blocks.deploy.StandaloneCompositeDeploymentCoordinatorImpl.coordinateCompositeDeployment(StandaloneCompositeDeploymentCoordinatorImpl.java:62)
         at oracle.integration.platform.blocks.deploy.servlet.BaseDeployProcessor.deployNewComposite(BaseDeployProcessor.java:378)
         at oracle.integration.platform.blocks.deploy.servlet.BaseDeployProcessor.deploySARs(BaseDeployProcessor.java:226)
    Caused By: oracle.fabric.common.FabricException: Error occurred during deployment of component: AssignVendorETATask to service engine: implementation.workflow, for composite: AlertBPMProject: ORABPEL-30123
    Error while deploying task metadata.
    The task namespace http://xmlns.oracle.com/AlertBPMApplication/AlertBPMProject/AssignVendorETATask is already used as a template namespace.
    Check if the project you are deploying now is a template project. Please avoid deploying template projects. Use a different namespace for the task definition to fix the problem or set the suffixNamespace flag to true.
    : Error while deploying task metadata.
    The task namespace http://xmlns.oracle.com/AlertBPMApplication/AlertBPMProject/AssignVendorETATask is already used as a template namespace.
    Check if the project you are deploying now is a template project. Please avoid deploying template projects. Use a different namespace for the task definition to fix the problem or set the suffixNamespace flag to true.
         at oracle.integration.platform.blocks.deploy.CompositeDeploymentConnection.deployComponents(CompositeDeploymentConnection.java:244)
         at oracle.integration.platform.blocks.deploy.CompositeDeploymentConnection.deploy(CompositeDeploymentConnection.java:93)
    Caused By: oracle.fabric.common.FabricDeploymentException: ORABPEL-30123
    Error while deploying task metadata.
    The task namespace http://xmlns.oracle.com/AlertBPMApplication/AlertBPMProject/AssignVendorETATask is already used as a template namespace.
    Check if the project you are deploying now is a template project. Please avoid deploying template projects. Use a different namespace for the task definition to fix the problem or set the suffixNamespace flag to true.
    : Error while deploying task metadata.
    The task namespace http://xmlns.oracle.com/AlertBPMApplication/AlertBPMProject/AssignVendorETATask is already used as a template namespace.
    Check if the project you are deploying now is a template project. Please avoid deploying template projects. Use a different namespace for the task definition to fix the problem or set the suffixNamespace flag to true.
    {rootCauses=[]}
         at oracle.bpel.services.workflow.fabric.WorkflowServiceEngine.deploy(WorkflowServiceEngine.java:908)
         at oracle.bpel.services.workflow.fabric.WorkflowServiceEngine.deploy(WorkflowServiceEngine.java:368)
         at oracle.integration.platform.blocks.deploy.CompositeDeploymentConnection.deployComponents(CompositeDeploymentConnection.java:239)
         at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
         at weblogic.work.ExecuteThread.run(ExecuteThread.java:178)
    Caused By: ORABPEL-30123
    Error while deploying task metadata.
    The task namespace http://xmlns.oracle.com/AlertBPMApplication/AlertBPMProject/AssignVendorETATask is already used as a template namespace.
    Check if the project you are deploying now is a template project. Please avoid deploying template projects. Use a different namespace for the task definition to fix the problem or set the suffixNamespace flag to true.

    I came across the same issue, and now resolved it like this.
    Firstly, you shouldn't deploy QuoteProcessLab with other UILabs like ApproveDealUILab and so on. So, if you already did it, then go to Weblogic EM and undeploy it.
    Secondly, you should deploy each of UILab separately as standalone application. So, deploy EnterQuiteUILab, BUsinessPracticesUILab, and so on each. These will run independently behind and when your project created based on template in the Composer runs, it will link each of these on human task.
    Thirdly, publish you QuoteProcessLab. And follow the book about how to create a project based on template in the Composer.
    Just one thing you should be careful with is, when you do auto-generation for human task, it sometimes doesn't work fully, unfinished halfway through. So, make sure that the icon 'go to existing business form taskflow' in .task file takes you to the human taskflow.
    If it fails, do another auto-generation. Sometimes DataBindings.cpx can get corrupted by JDev, but let's not go too far for now.
    Mostly, it will work.
    Sung

Maybe you are looking for