Author |
Message
|
ucbus1 |
Posted: Thu May 22, 2003 1:18 pm Post subject: Question on activity processing |
|
|
Knight
Joined: 30 Jan 2002 Posts: 560
|
I have a two step activity.
First,user gets work (let us say work instance 1) and decides to instantiate another work instance (say work instance 2).Now... I am handling the instantiation ( i.e., connecting to the queue, creating xml and putting the instantiation message in workflow) thru upes service which invokes a program to do all the work.If the output of the program is "success" then the work instance 2 gets instantiated and work instance 1 gets deleted out of workflow ( ofcourse not immediately..but eventually when the clean up server runs). this is working fine..
In a real world there could be lost of errors. Say I could not connect to instantiate the work item since the qmanger is down or say database is down. Then I do not want work instance 2 to be created and I do not want instance 1 to be deleted. So I have put in logic to route the work to "spluser", so that I could force restart and let it go thru my program once again after some time ( by which I hope databse/qmnager problem would be reolved).
But when I restart it to go thru the program, it is not getting processed thru the program second time.How should I be handling this?
Thanks |
|
Back to top |
|
 |
jmac |
Posted: Thu May 22, 2003 1:34 pm Post subject: |
|
|
 Jedi Knight
Joined: 27 Jun 2001 Posts: 3081 Location: EmeriCon, LLC
|
Ucbus:
If I understand you correctly, you have 2 one activity Process Models. Model 1 has an activity which causes Model 2 to be instantiated via XML message.
I really need to know a lot more, but on the surface, my first question is why do you need 2 process Models here? It would seem to me that you could handle this with a transition condition from Activity 1.
Perhaps if you give more background it would be helpful _________________ John McDonald
RETIRED |
|
Back to top |
|
 |
sshaker |
Posted: Thu May 22, 2003 1:35 pm Post subject: |
|
|
 Disciple
Joined: 20 Sep 2002 Posts: 185
|
how about setting an exit condition for your activity.. till the exit condition is true.. the activity will keep executing.. !!
may be u can explain the scenario in little more detail.. why ur doing this?
regards
shaker _________________ shaker |
|
Back to top |
|
 |
ucbus1 |
Posted: Thu May 22, 2003 1:50 pm Post subject: |
|
|
Knight
Joined: 30 Jan 2002 Posts: 560
|
Yes.. I did felt the same way. But here is the reason.We have different forms which go thru different workflow templates. When customer submits any of the standrad forms..life is good. This is what is envisaged and the system was built.But some times he/she can scribble on a piece of paper sumbit to us. What do we do. We take the scribbled piece ( instance 1) decide oh.. this falls into instance2 or 3 or 4 and route it accordingly. |
|
Back to top |
|
 |
sshaker |
Posted: Thu May 22, 2003 1:55 pm Post subject: |
|
|
 Disciple
Joined: 20 Sep 2002 Posts: 185
|
i am lost.. is it possible to explain the process in little more detail..or if john or anybody else has got some idea .. can pl elaborate on what is happening ..
if u have multiple paths for a process.. still for me it is one process.. with one template.. based on some condition.. say form no.. i take it thru related path.. !
regards
shaker _________________ shaker |
|
Back to top |
|
 |
ucbus1 |
Posted: Thu May 22, 2003 2:34 pm Post subject: |
|
|
Knight
Joined: 30 Jan 2002 Posts: 560
|
I do not know how best to explain. But will try.
We have a system that is built in to cater to standard forms through pre defined processes. now at the end of it, we got another requirement to handle non standard /scribbled /hand writen information. However, we did not want to change waht was in place. So we have added the new requirement as separate template/process. From the new template or process, after determining which (standard) template to use and accordingly we are instantiating work.
Why to follow this way... I can not speak for it but.. I have to make it work the way it is there.
Still not clear...?
Thanks |
|
Back to top |
|
 |
Ratan |
Posted: Thu May 22, 2003 3:30 pm Post subject: |
|
|
 Grand Master
Joined: 18 Jul 2002 Posts: 1245
|
I think what you are trying to do is too complex and irrelevant for us, just explain how you are doing this:
Quote: |
But when I restart it to go thru the program, it is not getting processed thru the program second time.How should I be handling this?
|
_________________ -Ratan |
|
Back to top |
|
 |
ucbus1 |
Posted: Fri May 23, 2003 4:24 am Post subject: |
|
|
Knight
Joined: 30 Jan 2002 Posts: 560
|
Ratan,
This is how I am trying to restart. On the worklist I have a monitor icon for the item. I click on the monitor and when I see the activity where it is stuck, I click on the icon of the activity which gave me a tool bar with diffrent buttons. One of them is force restart button and I clikc on it with a hope that it would restart and go thru the program again. Apprently something is wrong with what I am doing...
Thanks |
|
Back to top |
|
 |
jmac |
Posted: Fri May 23, 2003 4:31 am Post subject: |
|
|
 Jedi Knight
Joined: 27 Jun 2001 Posts: 3081 Location: EmeriCon, LLC
|
Force restart will only put the activity back into the ready state... You still would need to start it. _________________ John McDonald
RETIRED |
|
Back to top |
|
 |
|