cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Did you get called away in the middle of writing a post? Don't worry you can find your unfinished post later in the Drafts section of your profile page. X

Stuck with error from java expression from workflow

BernardWielfaer
6-Contributor

Stuck with error from java expression from workflow

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 2

There is not enough information posted. You have to provide the code,
explain the requirement, or provide a log file.






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

Top Tags