Skip to main content
1-Visitor
December 17, 2012
Question

Stuck with error from java expression from workflow

  • December 17, 2012
  • 2 replies
  • 1262 views

Hi,


I wrote a java class and execute this as an expression in the workflow.
In the overview page of the process manager(see printscreen as attachment) I have an error "Can't execute; bad workflow expression".


Can you tell how to find more detailed infoor how todebug that code ?
Also what is the function of that number in the list ? E.g. :


Nested exception is: (wt.workflow.definer.definerResource/19) wt.workflow.WfException: Can't execute: bad workflow expression


When modifying the java code you you realy need to restart te Windchill services or is there a other way ofapplying the new .class file ?


Any help is welcome, best regards,
Bernard

2 replies

1-Visitor
December 17, 2012
There is not enough information posted. You have to provide the code,
explain the requirement, or provide a log file.






1-Visitor
December 17, 2012

Hi Dave,


Hereby the java code to check if there is an iges file attached to the folded model.
This iges file is a requirement for our supplier when ordering bended parts.
The code will check if there is an iges attached and if not return a error. If there is an iges the date of the attachment will be compared with the previous version, so to avoid that when doing a revise the old iges is still attached to the new object.


The expression in the workflow is as follow:
CheckIges = ext.savaco.lvd.CheckIges.doCheckIges((wt.maturity.PromotionNotice)primaryBusinessObject);


Regards,
Bernard