Posted: Mon Dec 19, 2005 11:24 am Post subject: Problem with the terminate() call.
Acolyte
Joined: 08 Nov 2005 Posts: 63 Location: Mexico
Hi and thanx for your time.
I'm working with the Java API using the diagrams of the work items states ( MQWF Programming Guide, 660, 661, 662 ). I have an array of workitems to terminate and I verify their state before make a call to terminate.
//instanciaOriginal it's an array of ProcessInsance
if( instanciaOriginal[0].state().value() == ExecutionState._RUNNING ){
instanciaOriginal[0].terminate();
}
The API Doc says the following;
"The process instance must be in states Running, Suspended, or Suspending.
The process instance is put into state terminating as long as there are terminating non-autonomous subprocesses. When the non-autonomous subprocesses terminated, the process instance is put into the Terminated state. When the process instance has reached the Terminated state, it is deleted depending on the setting of the "delete finished items" option."
But when the workitems reached the terminated state, these don´t get deleted.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum