How to programatically set  HT expiration based on BPM process?

Hi All,
I'm developing a BPM process with human tasks. Is there a way by which I can set the task to expire 35 days after the date the instance of the BPM process was spawned? I see within the task an option to set Expiration after a fixed number of days, but my scenario requires that I compare the current date with the date on which the instance of the BPM process was created and set to expire accordingly.
Is this achievable? If not directly are there any suggested programmatic approaches to achieve this?
JDev : 11.1.1.4
Thank you.
PP.

Don't know if you know how to get the number of days, hours, minutes that you want to wait and then put that into a either a string or integer variable (no decimals). If you know how to do this, then the code below should help. These examples assume you want to wait a certain number of days and this number is passed in using the variable "sla".
Setting the human task's deadline
The human task deadline timer can be set programmatically from a process variable using an XPath expression. In the human task's "Deadline" tab select "By Expression" from the dropdown. In the example below, the XPath expression would this if you had an string or integer variable called "Sla" and you wanted to set the number of days based on this variable:
concat("P0Y0M",/task:task/task:payload/task:Sla,"DT0H0M0.0S")
Setting the Interactive activity's deadline
You'll also want to set a boundary timer event on the Interactive activity set to the same duration. The syntax for this logic is different than the human tasks deadline. In the timer event, if you use the radio button "Time Date", the XPath expression to set the number of days based on a variable would be:
xp20:add-dayTimeDuration-to-dateTime(xp20:current-dateTime(),concat('P0Y0M'  ,bpmn:getActivityInstanceAttribute('SUBPROCESS3082641628371', 'inputDataItem')/ns:sLA,'DT0H0M0.0S'))If you instead select the timer event's "Time Cycle" radio button, the logic would be:
concat('P0Y0M',bpmn:getActivityInstanceAttribute('SUBPROCESS3082641628371', 'inputDataItem')/ns:sLA,'DT0HM0.0S')Dan

Similar Messages

  • How do you set the expiration date of a secure zone?

    I am trying to set up a form where a user can sign up for access to a secure zone for 1 year. How do I set the expiration date of the secure zone for them to expire one year after they sign up for it?
    I have tried using a hidden field named "ZoneExpiry" (I have tried "ExpiryDate" as well) in the form and set its value attribute manually in the HTML (with the format 13-May-13), and the expiration date always ends up being 31-Dec-9999.
    Any help would be greatly appreciated.
    Thanks!

    I have done this.
    Have a hidden input field on form  <input name="ZoneExpiry" id="ExpiryDate" />
    Then have a function as follows:
    var dat=new Date();
                                                      dat.setDate(dat.getDate() + 365);
                                                      var monthname=new Array("Jan","Feb","Mar","Apr","May","Jun", "Jul","Aug","Sep","Oct","Nov","Dec")
                                                      var pretty = dat.getDate() + "-" + monthname[dat.getMonth()] + "-" + dat.getFullYear();   
                                                      jQuery("#ExpiryDate").val(pretty);
    Hope this helps.

  • How to programatically set hypertrend trace Y-axis setting

    Group,
    I can't seem to figure out how to programatically specify which Y axis a trace belongs to in Hypertrend.  In the trace properties it seems that I can set most everything else but I don't see a setting for this option.  I can set the MINs, MAXs, colors, URLS and so forth but when the Hypertrend control has more that one Y-Axis set up, how can I specify which one?  Can anyone point me in the right direction?
    Thanks
    Todd

    Hello,
    Unfortunately NIHyperTrend control is an ActiveX control that is very limited in its a ability to be configured. programmatically changing the y-axis is not possible. I apologize for the inconvenience.
    National Instruments

  • How to disable/set password expiration to None in EBS

    HI ,
    I just clone a 11i , and was asked to set all users password not to expire . I have studied FND_USER_PKG.UPDATEUSER , but has no idea how to do it . Can anyone help ? Thanks
    Felix

    Hi;
    Please check below which could be helpful for your issue:
    Password information-Where ebs pass keep
    Re: Password information
    password expiration for EBS users
    how to set password expiration for EBS users
    password polciy
    Password policy
    Regard
    Helios

  • How can I set an expiration date on a pdf in adobe acrobat 9?

    I am trying to set an expiration date for some documents, I have tried to use several javascript methods with no success. My adobe skills are very minimal so the easiest way possible would be appreciated.

    Acrobat can act as a client to the LiveCycle DRM encryption system but you must have an existing account on a LiveCycle ES/ES2/ES3 server with the Rights Management module activated. That requires you either license a copy from Adobe or work for someone who already has it running and who can issue you an account.
    LiveCycle ES3 is an extremely powerful enterprise-class solution for document creation and publishing, designed for use by hundreds or thousands of employees. To say it's not cheap is somewhat of an understatement, and the Rights Management module is an optional extra.

  • How to programatically set and save shortcut menus in to a control?

    I want to create some some shortcut menus for multiple controls of the same type, I want to do it programatically so I dont have to go one by one editing the custom menus, or copy paste the same control since I would have to re-build all my controls every time I want to add a new shortcut menu option (becouse I dont know yet how many options I will need). How can I programatically add a element to the shortcut menu of a control, and save it in to it? For example, in shortcut menu activation event, I can modify add/remove elements, but this do not save on to the shortctu menu you edit statically in edit mode of the vi. Ty! 

    There is no need for a time out. If someone right clicks on the control with the menu, a menu activation event is fired for that control. If the make a selection a menu selection event is fired for the control, otherwise it is like they never clicked on the control in the first place, nothing happens.
    Write a small example for yourself and run it with execution highlighting turned on. You'll see what I mean.
    Mike...
    Certified Professional Instructor
    Certified LabVIEW Architect
    LabVIEW Champion
    "... after all, He's not a tame lion..."
    Be thinking ahead and mark your dance card for NI Week 2015 now: TS 6139 - Object Oriented First Steps

  • How do programatically set focus on a record other than the first one in a block?

    My form performs the query for the block, and by default it leaves the focus on the first (top) record in the block.  I'd like to have it focus on the last record in the block upon initial query.
    i've tried Last_record and go_record in a post-block trigger but these builtins are restricted and you can't execute them from post block triggers.  i don't see any block property things that would influence this either...  how can i do it?  thanks.

    i just figured out the answer to my own question... in the when new block instance trigger, there's an execute_query statement, and i simply put last_record statement after that...

  • How to programatically set sound bitrate

    This is related to my earlier posting
    http://forums.adobe.com/thread/479280?tstart=0
    I now can stream and play  an audio file. this works fine when the format of the audio file is 44100Hz PCM.
    I want to stream and play an audio file whose format is 8000Hz ulaw. Converting the samples from 1 byte ulaw to 2 bytes PCM is trivial, but converting the ample rate from 8000 to 44100 is more complicated.
    I'd like to the sound object to set the audio bitrate to 8000 but I can't find a method or property

    Hello,
    Unfortunately NIHyperTrend control is an ActiveX control that is very limited in its a ability to be configured. programmatically changing the y-axis is not possible. I apologize for the inconvenience.
    National Instruments

  • How do I name output files based on files processed from a watched folder?

    Hello!
    I've built a small process to merge XML files with XDP templates, generating PDF files at the end of the process.
    Right now the process is generating all files with a fixed name + a random number, as defined in the Input panel (literal value with option "Appen a suffix..." checked.
    I'd like to change this so the resulting files have the same name as the input files, changing only the extension (PDF instead of XML).
    I believe I should change from literal value to XPath expression, in order to build the resulting name based on the input file name.
    QUESTION: what function should I use to get the input file name in XPath builder (if this is the right place to do it) ?
    I tried with:
         getDocAttribute(/process_data/@docApolicesXML,"wsfilename")  + ".PDF"
    Does not work.
    Thanks a lot for any hints!
    Marcos

    Hi Marcos,
    You should do the following:
    Create new variable "filename"
    And in a Set value you should:
    filename = getDocAttribute(/process_data/@docApolicesXML,"basename")
    filename = concat(/process_data/@filename,".pdf")
    This will give you "myFile.xml.pdf - if you want myFile.pdf instead, you need to do this in the Set value:
    filename = getDocAttribute(/process_data/@docApolicesXML,"basename")
    filename = substring-before(/process_data/@filename,".xml")
    filename = concat(/process_data/@filename,".pdf")
    That should do it :-)
    Kim Christensen
    Dafolo A/S
    Denmark

  • BPM11g How to customize the title column of a BPM process instance?

    Hi, everyone.
    In the process track panel of Workspace there is a table with process instances in it.
    Users shall look into this panel and find information about their processes.
    One of the columns of this table is named "title" and the content of this column is like "instance #" + process instance number + process type name.
    This title is of little use to end users while they are trying to find a certain business process.
    I want to customize this column so I can put some key business word in the content but I do not know how.
    Anyone can help? Thank you.
    Edited by: Matt Wang on Apr 19, 2011 10:32 PM

    Hi Matt
    1. For Flex Fields, please see the below link. Basically you login into bpm/workspace as Adminstrator and then you can do this.
    http://download.oracle.com/docs/cd/E17904_01/integration.1111/e10224/bp_worklist.htm#CHDFDHGD (Latest version 11.1.1.4)
    http://download.oracle.com/docs/cd/E12839_01/integration.1111/e10224/bp_worklist.htm#CHDFDHGD (Older version 11.1.1.1)
    2. As admin user only you can create a new custom view, by clicking + icon on left side. For this new View, you can define the name, columns you want to show in this new view, any particular sort order etc etc. Then you can set some privleges also for this new View. After this, this View should now be visible for all the normal regular uses (non admin user). I guess there may be a way to make these custom views as the default views also for a specific user or role. I have not explored this though.
    In the above links see the section: Section 30.3, "Customizing the Task List Page"
    3. In EM Console, we may not be able to do any customizations. But if your intention is to search for list of tasks with specific criteria, in EM console itself for your process, on right side, there should be a tab like Intances. There you can specify your search criteria and Search. I am not aware of how to show the data in the Name column for the instances listed.
    Thanks
    Ravi Jegga

  • How to create Dynamic number of attachments in BPM Process ?

    Hi All,
    I have a requirement to create a dynamic number of attachments, as per need. I am aware of attachment.create() but i believe with this i can only create only the fixed number of attachments. Is there any way by which i can play around with create() api or is there any other API to fullfill the requirement??
    Any response is well appreciated.
    Regards,

    Hi,
    You can create the n-items in the region by creating items in the controller. i mena to see say by looping..
    Thanks,
    Kumar

  • Set automatically expiration date in a JTextField

    How can I set automatically expiration date in a JTextField if i already know current date-dd/mm/yyyy ( from a JTextFiled) and frequency(monthly etc)?
    Thank you!

    This is the code
    public void actionPerformed(ActionEvent ae){
    String data=tf10.getText();
              DateFormat df=DateFormat.getDateInstance(DateFormat.SHORT);
                   try{
                   df.parse(data);
                        }catch(ParseException nf){
                             JOptionPane.showMessageDialog(this,"Complet data");
    return;
    and after I press the button i want to display in next JtextField expiration date. I don`t know if it is good how I have created it

  • How can I set a BPS's formula to be a remote process

    Hi Masters
    Now i hava a copy formula in my BPS level.
    I want to know how can I set it to be a remote process and remote it in every day.
    Thanks & Regards.

    Create a process chain, add process type to call the report program UPC_PLANFUNCTION_EXECUTE with proper variants, assign the planning function and trigger this process chain daily.

  • How do i set up my airport extreme to access from my work windows based PC

    How do I set up my airport extreme to access from my work windows based pc?

    To mount the AirPort Disk in Windows 7 or Vista:
    Open the Network browser by double-clicking Network on the Windows Desktop.
    The AirPort Extreme base station name should appear in the browswer.
    Double-click the name and you should get a login prompt.
    Now depending on how you set up disk access:
    In the Name field, either enter the user account name or for base station/disk access, leave this field blank.
    In the Password field, enter the base station, disk, or user account password.
    Select the volume(s) you want to mount, and then, click OK.

  • How to set dynamic expiration date in User Task

    Hi
    I need to set the expiration date of a User Task to a specific date, not a duration. Is it possible to do this?

    I have also got a smiliar problem. Does anyone have any further information to how this can be achieved?
    I have been able to use the Human Task Wizard screen (<usertask>.task) to hard code the expiration time. Using the Fixed Duration option of days, hours or minutes. I have tried to use the 'By Expression' to do this but have been unable to get it to work. I have tried to select the /task:task/task:systemAttributes/task:expirationDuration or the /task:task/task:systemAttributes/task:expirationDate element within the task workflow xsd but are unsure how to get it to read the date. I have tried to assign a time component to expirationDate and a time period P0DT0H20M to the expirationDuration element.

Maybe you are looking for