Skip to Main Content

Database Software

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Run a Workflow Activity Until a Given Date

Migs_IsipNov 13 2014 — edited Jan 27 2015

Hi, I have a requirement to run the Workflow Activity once per day until a certain date has been reached.

Once that date is reached, it will continue on the next activity.

I can't seem to find the right approach/method.

Do i use a timeout? do I Defer the activity?

The Package that is WF pertains to just uses the simple logic below

Begin

***do some stuff***

if sysdate = the_dead_line then

      resultout := Wf\_Engine.eng\_completed||':'||Wf\_Engine.eng\_null;

ELSE

 resultout := \*I THINK THIS IS THE PART I GET WRONG\*

END IF

END;

I've tried WF_Engine.Eng_Timedout but it runs more than expected (once a day). once the procedure finishes, it runs again, not waiting until tomorrow.

I've also tried Wf_engine.Eng_deferred and setting something like sysdate+1 but it doesn't seem to work.

I've also tried setting the Activity's Threshold above 50, then running a background engine, but it looks like it does not go out of the deferred state.

The activity looks like this.

asdasd.jpg

I haven't tried retry or loop, as to i do not have an idea how to do it.

can anyone help?

thanks!

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Feb 24 2015
Added on Nov 13 2014
3 comments
1,083 views