Hello ,
I created workflow, workflow need to execute when EPMDocument checked in from PROE/AutoCAD. Workflow is set in EPMDocument lifecycle INWORK State.
However the workflow is called when EPMDocument save and Uploaded. which is wrong. workflow should execute when EPMDocument checked in.
To fix this issue , I added synchronize robot on check-in event of EPMDocument at beginning of workflow but issue not solved . Workflow starts when EPMDocument save and uploaded. and it wait at synchronize robot. But when I checked in EPMDocument then nothing happens, workflow not proceed , It holds process at synchronize robot. does anybody have idea ?
primaryBusinessObject is EPMDocument
if ( primaryBusinessObject != null ) {
String stringCreator = ( (wt.epm.EPMDocument) primaryBusinessObject ).getCreatorName() ;
String stringForlderPath = ( (wt.epm.EPMDocument) primaryBusinessObject ).getFolderPath() ;
String stringLocation = ( (wt.epm.EPMDocument) primaryBusinessObject ).getLocation() ;
if( ! stringForlderPath.contains( stringCreator ) || ! stringLocation.contains( stringCreator ) ) {
result = "ok";
}
}