Process that takes 6 months to finish

My quesiton is on performance when having a process open for extended amount of time.
For example a tuition reimbursment process. A user enters his data at the beginning of the school year to get approval for his course work.
Once approved the process would sit dorment until the user came back at the end of the year to enter in his grades and attach is transcripts and then submit for final approval.
Would this pose issue or would all this be persisted in the DB and have no impact?

If you're on Oracle BPM 10g, there are two ways you can set a deadline.
1) For a deadline at the individual activity level, you can add a due transition to the Interactive activity and set this to 6 months. Once 6 months have passed and the instance is still in the same activity, the instance will flow from the activity through the the Due transition to the next activity.
2) For a deadline at the entire process level, you can set the predefined variable "deadline" to sometime in the future (e.g. 'now' + '6m'). No matter where the work item instance is located in the process, after 6 months, the engine would throw an "InstanceExpiration" exception for the instance. The instance would flow to the exception handler. The deadline for the whole process is determined by what you set the "deadline" predefined variable to. This can be set anywhere inside the process as early as the Begin activity.
To set it differently for different instances use a time interval variable or a business parameter. Here's an example. Say you have different service level agreements (SLAs) for different category levels of customers. Platinum level customers are 2 days, gold level customers are 4 days, silver customers are 6 days. In a method you might then have the logic:
if customer.level = "Platinum" then
    // DEADLINE_HOURS_PLATINUM is an integer Business Parameter set initially to 2 days
    deadline = 'now'.addHours(i : DEADLINE_HOURS_PLATINUM)
elseif customer.level = "Gold" then
    deadline = 'now'.addHours(i : DEADLINE_HOURS_GOLD)
elseif customer.level = "Silver" then
    deadline = 'now'.addHours(i : DEADLINE_HOURS_SILVER)
else
    // no deadline for the process
    deadline = null
endHope this helps,
Dan

Similar Messages

  • A sql query that take forever to finish it's execution

    hi,
    i am using oracle 10g/RedHat Entreprise linux 5.
    i turn to you to help understand some odd behavior of a sql statement.
    when i execute this statement:
    create table ps_m_instop_profil NOLOGGING parallel(degree 3) as
    SELECT b.topinstprodid AS insp, ltrim(rtrim(c.attr_item_id||c.attribute_value)) AS profil,
    d.inst_prod_status AS statuts
    FROM sysadm.ps_rf_attr_insp@DBCRM c,
    sysadm.ps_rf_inst_prod_st@DBCRM d,
    sysadm.ps_rf_inst_prod@DBCRM b,
    sysadm.ps_rb_attribute@DBCRM e
    WHERE c.attribute_id IN
    ('PPSPROFILE_X',
    'PPSPROFILE_Y',
    'PPSPROFILE_E',
    'PPSPROFILE',
    'PPSPROFILE_G1','INPROFILE_O','INPROFILE_U')
    AND b.inst_prod_id = c.inst_prod_id
    AND e.attribute_id = c.attribute_id
    AND e.m_crm_attr_typage = 'M_PROFILE'
    AND b.topinstprodid = d.inst_prod_id
    AND d.inst_prod_status = 'INS';
    if the number of ligne returned is small aproximatively 10000 the request end.
    if the number of line is 13500000 (the number that should be returned +/- some thousand raws) the request hang indefinitely.
    i am asking if it's due to some problems due to the dblinks then what should i check and how can i fix it.
    this statement is very important it's the first step in my plsql script and if the request don't end normaly i can't continue the execution of the script.
    thank you in advance.

    As you are creating a table, could you not just create a table for each of your database links
    eg
    create table ps_rf_attr_insp as select * from sysadm.ps_rf_attr_insp@DBCRM;
    create table ps_rf_inst_prod_st as sysadm.ps_rf_inst_prod_st@DBCRM;
    create table ps_rf_inst_prod_st as sysadm.ps_rf_inst_prod@DBCRM;
    create table ps_rb_attribute as sysadm.ps_rb_attribute@DBCRM;and then all your queries can run locally,
    plus you can any appropriate indexes etc

  • HT201328 Why do Orange and EE blame Apple for the delays in unlocking my iPhone. 10 months now. What is the exact process that these companies have to go through to unlock an iPhone and is Apple in any way to blame for the delays.  Indeed how long does Ap

    Why do Orange and EE blame Apple for the delays in unlocking my iPhone. 10 months now. What is the exact process that these companies have to go through to unlock an iPhone and is Apple in any way to blame for the delays.
    Indeed how long does Apple take to carry out its part of the process. 
    It seems to me that Orange are just trying to stall me despite the fact that I am out of contract with them now.  I originally paid to have the phone unlocked back last November.  This was never done. 
    I have phoned them numerous times over the last two months but still they haven't done it.  Can anyone advise me and has anyone had similar problems with them.
    Thanks

    I certainly understand that only Orange can unlock my phone.  My annoyance is that they blame Apple so I am keen to know what exactly is Apple's involvement. 
    I presume that Orange have to tell Apple that the phone has been authorised for unlocking by Orange and that Apple then notes that in some way on iTunes so that the user can then complete the process on iTunes. 
    What I would like to know is how much time Apples part in this process takes.
    I would also like to make contact with others who have had similar problems.
    Many thanks

  • HT3204 I have been receiving the error message ...'iTunes store is unable to process purchases at this time.  Please try again later"  over that  last month with increasing frequency

    I have been receiving the error message ...'iTunes store is unable to process purchases at this time.  Please try again later"  over that  last month with increasing frequency.  What is the cause and solution?

    Hello e-b p,
    Thanks for the question, and welcome to Apple Support Communities.
    When encountering iTunes Store connectivity issues, the following resources provide the best solutions. To isolate the issue further, I'd be curious to know if it persists on other Wi-Fi networks (assuming you are using a portable computer). Either way, please attempt the steps outlined in these articles:
    Can't connect to the iTunes Store
    http://support.apple.com/kb/TS1368
    iTunes: Advanced iTunes Store troubleshooting
    http://support.apple.com/kb/TS3297
    Thanks,
    Matt M.

  • I have received a notice that my forms central account has lasped due to being unable to charge credit card.  I have changed cards and will update, but do not want to pay a full subscription since Forms is ending.  I am in the middle of a process that wil

    I have received a notice that my forms central account has lasped due to being unable to charge credit card.  I have changed cards and will update, but do not want to pay a full subscription since Forms is ending.  I am in the middle of a process that will end in a month.  What do I do to be able to finish this process???

    It is a bad situation. Your credit card expired but you cannot change it because FormsCentral is retiring.
    Please consider moving your forms to JotForm right away. It takes a few minutes to do it using JotForm new Import Wizard:
    http://www.jotform.com/formscentral/

  • Permissions repair takes hours, never finishes

    I've been doing some looking around the forums but haven't found an answer to my question.
    PROBLEM: Permissions repair takes FOREVER. I started a permissions repair task on the startup drive yesterday afternoon and it hadn't finished by this morning. In fact it said it had 12 more hours to go. Right from the start there are hundreds of entries about ACLs found but not expected. After awhile the list stops populating. And just when you think the thing has locked up, you hear disk activity and see the list change.
    WHY DID I RUN PR?: We'd recently created a new user account on that machine and Final Cut Pro was crashing a lot on the new account.
    OTHER TIDBITS:
    - The account I ran PR from is an administrator account
    - There are multiple administrator accounts on this machine
    - This machine has a lot of disk: startup drive, project drive, scratch drive (2 disc RAID0) and an external FW800 RAID1 drive. (I ran permissions repair on the startup drive only.)
    QUESTION: It seems like we have serious ACL pollution on this machine. Is there a way to clear them out and "start over"? I can reinstall if necessary, but would prefer not to.

    Hi,
    Since Permissions Repair is checking permissions on (I believe) most every file in your system, it's not unreasonable to expect that the more files on your system, the longer the repair process will take. Twelve hours does seem a bit long, but as long as PR seems to be working and not hanging, if I were you, I'd pick a time when the computer won't be needed for anything else and let PR run to completion. Also, it seems that the remaining time calculation is an extrapolation based on the time already spent to do the completed work, and if some of that work took a proportionately long time, the 12-hour estimate could be a significant overestimation. Since you aren't eager to do a reinstall, letting PR run to completion seems to be the most prudent thing to do.
    Hope this helps,
    Ken

  • Copy video files then processing files takes to long

    first i have to copy the video files which takes about 6 hours sometimes more sometimes less then processing the files takes another 6 hours more sometimes less... am i doing something wrong ro how can i speed this up?
    i am copying the files from my mac hd to an external hd... is that the problem?

    i have copies on one external drive and i am copying them to another drive for for permanent storage and when i copy them over it takes long about 6 hrs... after its finished copying it process the files so that takes about the same time as copying them. I even tried doing it straight from my video camera to my mac and after that it has to process the files...i dont understand why it even does this. this never happened with imovie 6 hd or even final cut express it only does this with imovie 8... to me it does not make any sense. i thought things would be faster in imovie 8 but it doesnt seem to be...

  • How To Handle DB That Takes Time To Open

    I am using DAO to link sql server tables into mdb.  With one database I have it takes roughly 60 seconds for the database to become available to link in the table.  When I open the database normally (w/o code) it takes about 5 seconds for the Database
    pane to be displayed, and this database has a form load on database open, and that takes about 50 seconds to actually pop-up.  I have been using Thread.Sleep() to combat this, but wanted to see if their is a better way to handle a bugger database.  This
    is my current code, does anyone have a better solution or code tweaks to handle this better?
    namespace TestLinkTable
    public partial class Form1 : System.Windows.Forms.Form1
    private DAO.Database dd;
    private DAO.DBEngine db = new DAO.DBEngine();
    private stat string dbolocation = "C:\\Testing\\database1.mdb";
    private DAO.TableDef tdf1;
    private static string SQLName = "dbo.MasterTable";
    private static string AccessName = "MasterTable"
    private static string SQLConnectionString = "";
    private void btnOpenDatabase_Click()
    dd = db.OpenDatabase(dbolocation);
    Thread.Sleep(6000);
    tdf1 = dd.CreateTableDef(AccessName);
    tdf1.Connect = SQLConnectionString;
    tdf1.SourceTableName = SQLName;
    dd.TableDefs.Append(tdf1);

    I implemented your code and I like the fact that it keeps the form available to still use if need be, but is their a way to keep the timer ticking so the elapsedtime on the form is updated and it doesn't just stop updating while this intensive database is
    in process of updating?  This is the syntax I have right now
    namespace TestLinkTable
    public partial class Form1 : System.Windows.Forms.Form1
    private DAO.Database dd;
    private DAO.DBEngine db = new DAO.DBEngine();
    private stat string dbolocation = "C:\\Testing\\database1.mdb";
    private DAO.TableDef tdf1;
    private static string SQLName = "dbo.MasterTable";
    private static string AccessName = "MasterTable"
    private static string SQLConnectionString = "";
    private Stopwatch sw = new Stopwatch();
    private System.Windows.Forms.Timer timer = new System.Windows.Forms.Timer();
    public Form1()
    backgroundWorker1.WorkerReportsProgress = true;
    backgroundWorker1.WorkerSupportsCancellation = false;
    backgroundWorker1.DoWork += new DoWorkEventHandler(backgroundWorker1_DoWork);
    backgroundWorker1.ProgressChanged += new ProgressChangedEventHandler(backgroundWorker1_ProgressChanged);
    timer.Tick += timer1_Tick;
    private void btnOpenDatabase_Click()
    sw.Restart();
    timer.Start();
    backgroundWorker1.RunWorkerAsync();
    private void backgroundWorker1_DoWork(object sender, DoWorkEventArgs e)
    System.Threading.Tasks.Task.Factory.StartNew(() =>
    dd = db.OpenDatabase(dbolocation);
    }).ContinueWith((t) =>
    Thread.Sleep(6000);
    tdf1 = dd.CreateTableDef(AccessName);
    tdf1.Connect = SQLConnectionString;
    tdf1.SourceTableName = SQLName;
    dd.TableDefs.Append(tdf1);
    //More going on here....
    timer.Stop();
    private void timer1_Tick(object sender, EventArgs e)
    txt_TimeElapsed.Text = sw.Elapsed.ToString("mm\\:ss\\.ff");

  • The 0co_om_opa_6 ip in the process chains takes long time to run

    Hi experts,
    The 0co_om_opa_6 ip in the process chains takes long time to run around 5 hours in production
    I have checked the note 382329,
    -> where the indexes 1 and 4 are active
    -> index 4 was not "Index does not exist in database system ORACLE"- i have assgined to " Indexes on all database systems and ran the delta load in development system, but guess there are not much data in dev it took 2-1/2 hrs to run as it was taking earlier. so didnt find much differnce in performance.
    As per the note Note 549552 - CO line item extractors: performance, i have checked in the table BWOM_SETTINGS these are the settings that are there in the ECC system.
    -> OLTPSOURCE -  is blank
       PARAM_NAME - OBJSELSIZE
       PARAM_VALUE- is blank
    -> OLTPSOURCE - is blank
       PARAM_NAME - NOTSSELECT
       PARAM_VALUE- is blank
    -> OLTPSOURCE- 0CO_OM_OPA_6
       PARAM_NAME - NOBLOCKING
       PARAM_VALUE- is blank.
    Could you please check if any other settings needs to be done .
    Also for the IP there is selction criteris for FISCALYEAR/PERIOD from 2004-2099, also an inti is done for the same period as a result it becoming difficult for me to load for a single year.
    Please suggest.

    The problem was the index 4 was not active in the database level..it was recommended by the SAP team to activate it in se14..however while doing so we face few issues se14 is a very sensitive transaction should be handled carefully ... it should be activate not created.
    The OBJSELSIZE in the table BWOM_SETTINGS has to be Marked 'X' to improve the quality as well as the indexe 4 should be activate at the abap level i.e in the table COEP -> INDEXES-> INDEX 4 -> Select the  u201Cindex on all database systemu201D in place of u201CNo database indexu201D, once it is activated in the table abap level you can activate the same indexes in the database level.
    Be very carefull while you execute it in se14 best is to use db02 to do the same , basis tend to make less mistake there.
    Thanks Hope this helps ..

  • DSO activation in Process Chains - takes long time

    Dear All,
    We have included DSO activation in Process Chains. This process takes a long time to execute. We manually cancel the corresponding process in Process Overview and repeat it from chain. The chain runs daily and this issue also occurs on a daily basis.
    Does anyone one of you have an idea of how to deal with this performance issue?
    Regards.

    Figure out in which class does your process fall in:
    Class A- High Priority
    Class B- Medium Priority
    Class C- Least Priority
    Background processes
    Class A jobs
    The number of work processes reserved for job class A is a subset of the number of background processes.
    You should only reserve work processes for job class A if it makes sense within your system organization. Work processes reserved for class A jobs are no longer available for job classes B or C.
    Set parallel processing for a specific BW process in the (variant) maintenance of the process
    Call the function for setting the parallel processes.
    You can call the function in the process variant maintenance of a process chain or in the process maintenance. The function call varies for the different BW processes.
    For example, in the data transfer process you call the function with Goto-->  Background Manager Settings.
    The Settings for Parallel Processing dialog box appears
      Under Number of Processes, define the maximum number of work processes that should be used to process the BW process.
    If you enter 1, the BW process is processed serially.
    If you enter a number greater than 1, the BW process is processed in parallel
    In the Parallel Processing group frame, make the relevant settings for parallel processing in the background:
    Enter a job class for defining the job priority.
    The job priority defines how the jobs are distributed among the available background work processes
      In the group frame Parallel Processing, you can define whether parallel processing should take place in dialog work processes or in background work processes for the processes ODSACTIVAT, ODSSID and ODSREQUDEL for the DataStore object
    Transport:
    The entries in tables RSBATCHPARALLEL and RSBATCHSERVER are written on a transport request of the Change and Transport System.
    Edited by: ram.pch on Oct 7, 2011 9:55 PM

  • Send a request to a conversation that has already been finished

    This error continually occurs. Any idea why?
              An attempt was made to send a request to conversation id []:169.254.17.244-b61346.100533c48f4.-7fea-gend.
              This is not a valid conversation id. The most common cause of this exception is an attempt to send a request to a conversation that has already been finished.
              Work around is to restart WLS and maybe this time it will not happen. WLS 8.1SP3.
              From: [email protected] ([email protected])
              Subject: Weblogic Tutorial Question - Need help
              This is the only article in this thread
              View: Original Format
              Newsgroups: weblogic.developer.interest.jms
              Date: 2004-09-17 09:12:33 PST
              Hi guys,
              I'm a Weblogic newbie. I have started working with Weblogic Workshop's
              Tutorial. I find them interesting and easy to follow. All was going
              well until I reached the Step 4 (Add a JMS Control). The url to this
              page is:
              http://edocs.bea.com/workshop/docs81/doc/en/workshop/reference/navResources.html
              After completing this tutorial to the end I get all the results
              mentioned, but I get additional error messages like these in my
              InvestigateTest.jws Web Service client:
              1095373714829
              investigate:creditScoreJMS:listener.onMessage
              External Service Callback investigate:creditScoreJMS:listener.onMessage
              Submitted at Friday, September 17, 2004 10:25:52 AM EDT
              Executable Request:Callback.onMessage
              ConversationNotFound Exception
              Submitted at Friday, September 17, 2004 10:25:52 AM EDT
              An attempt was made to send a request to conversation id 1095373714829.
              This is not a valid conversation id. The most common cause of this
              exception is an attempt to send a request to a conversation that has
              already been finished.
              Request Cancelled
              Submitted at Friday, September 17, 2004 10:25:52 AM EDT
              Processing Request
              Submitted at Friday, September 17, 2004 10:25:53 AM EDT
              Request Complete
              Submitted at Friday, September 17, 2004 10:25:53 AM EDT
              I cannot figure out why I'm getting these. I'm doing everything as
              described in the Tutorial. Can somebody tell me what I'm doing wrong.
              I would greatly appreciate.
              Thanks.
              Adnan

    hi
              We just encountered this problem while load testing using JMeter. While it may not be the same scenario, we have found that we can consistently trigger this error if:
              a) multiple threads from the same client are invoking the service (i.e. a JMeter using JavaSamplerClient can do this)
              b) the web service is conversational according to the polling design pattern recommended in the WLW doco: i.e.
              startQuery()(one-way) conversation phase = start
              checkQueryStatus() conversation phase = continue
              fetchQueryResponse()conversation phase = finish
              c) buffering is enabled for the startQuery() operation.
              d) the number of threads > 3 (might occur very infrequently <= 3 - cant remember)
              This is reproducable in our WLS/WLW 8.1 SP2/SP3 environment.
              With buffering enabled - errors occur
              With buffering not enabled - no errors
              On reflection, buffering isn't really needed for our usage so we removed it, however the errors might indicate a bug or unsupported use case
              Regards
              Jim Nicolson

  • ITunes 10.5 has three processes that hog CPU 100%

    Since I updated iTunes to 10.5, there are three proceses that hog the CPU to 100% and everything comes to a screaching slow mode. These are APSDaemon.exe, MDCrashReportTool.exe, and AppleMobileDeviceSerivce.exe. Even when I close iTunes, these processes keep running and continue to hog the CPU.
    I am running Window XP on an IBM (Lenovo) Thinkpad T60 machine with 2GB Ram and T2500CPU @ 2.00GHz.
    What are these processing doing that takes so much CPU poawer. Before iTunes and iPad updates, they use to function properly.

    When I called Apple Support to ask about the 100%  CPU usage, they wanted to charge me because my Ipod was out of warranty.  I insisted on talking to someone and finally got to talk to a software engineer for free.  He said that he had never heard of the problem in his three years at Apple.  Nonetheless, he sounded really interested and suggested that it might be a conflict with anti-virus software.   I deleted the antiviruse and that DID NOT HELP AT ALL.
    It seems as if Apple could care less.    There is no official response.   Their primary response is to look at the Forum.   At least you find out that the problem isn't your fault, it really is Apple!!!!
    So far the best solution is just to delete iTunes and use Mediamonkey to sync your pod.
    Apple, please fix this!!!!!

  • What is this Wine that takes over 100 MB of memory running on root on my computer?

    What is this Wine that takes over 100 MB of memory running under root on my computer?

    The only apps I have installed since purchasing are Mac Keeper and the most recent version of Caffeine.
    Also, wine is running by itself, and it is there going when I first turn the computer on. I can shut it down through activity monitor, though.
    When I look at the process heirarchically, though, it shows up.
    The process heirarchy looks like this: launchd -> AntiVirus -> wine and nothing is running under wine.

  • I have a DVD project that takes about 14 hours to generate. Is there any way to periodically save it during encoding so power failures or other problems do not require a complete restart?

    I have a DVD project that takes about 14 hours to generate. Is there any way to periodically save it during encoding so power failures or other problems do not require a complete restart?

    No.  Are you saving the project as a disk image rather than burning directly to disk from iDVD?  If not then that's what I suggest you do.  That will separate the encoding process from the burn process to save time and disks if the encoding is bad.  It also lets you burn a second or third disk without having to encode again.
    OT

  • Can't transfer pictures, can't stop the process that I have already stopped, can't turn off the computer. Please help

    Hello! I got my computer today and then I wanted to transfer all my pictures from my Iphone to the computer so I could delete the pics on my phone. So I plugged the phone in and started the process. Suddenly it stopped to transfer pictures and was standing still for a long time so I canceled the transferring. Then it asked if I wanted to keep the pictures that were already transferred so I confirmed it twice but the computer didn't react so then I clicked on delete. So I tried to start the process again by plugging the phone in and out one time. I clicked on transfer all but it was saying that they have to finish the first one first that I had canceled. So then I tried with my camera and it still said the same thing. I have tried to close Iphoto but that didn't work either. I can't even turn the computer off because then it says that I have to close Iphoto and I couldn't do that. So everything just stands still right know and I really need to transfer the pictures and I need to turn off the computer. Sorry for the long question but I really need help, hope the question is understandable / Linn

Maybe you are looking for

  • How can I delete an existing Apple ID on my MacBook Pro?

    Hello me and my Dad bought today an Mac Mini and a MacbookPro. My father setup the Mac mini and has created an AppleID and so he also did the same on my MacBook pro but the problems now is, if I wanted to update my Programms in the store i need to si

  • I will be travelling abroad but use time machine and modem at home. Do I need to leave these switched on while away for iCloud to work?

    I will be travelling abroad but use time machine and modem at home. Do I need to leave these switched on while away for iCloud to work?

  • Discoverer Viewer

    Navigating to a JSP page shows following error : The requested URL /discoverer/viewer was not found on this server. Need your suggestions to diagnose whats wrong. Regards

  • String & Int in Bean

    Hi, i'm building a webapp to simply allow the user to enter his or her details which will be submitted with all the details stored in the bean. When deciding to either make properties such as age or telephone number as string or int in a bean, i read

  • EKBE & EKET

    hi, i´m working on a report using Logical DataBase MEPOLDB.The problem i´m facing is that there are several entries of ekbe-menge for a single entry of eket-menge. is there a relationship between ekbe-menge ekbe-bldat and eket-menge eket-sfldt? Any h