Skip to content

Is there a way to slipstream a custom message back to the Modeler Messages view? #1

@hangtime79

Description

@hangtime79

Good day @wujiazhong

I'm currently working on an extension and I would like to raise a custom error in the stop(). The example here is checking if an end date predates a start date. When I do so, I can see the custom stop output printed in the Console Output of the dialog box and the edit I did to the ibmspsscfr.properties file.

image

but in Modeler messages, the error is returned like the following:

image

Looking at the error and the properties file it appears that a 1012 error is raised, which brings me to my question.

Is it possible to raise this custom error and slipstream it into the Modeler message Output, which a user would be much more likely to see then looking in the Console Output? Looking at the Console Output, you can see that I I was able to print out an error, I also updated the .properties file with a custom message "Bad Cop, No Donut" when this error was raised. However, it does not appear that Modeler is reading this value. It is either getting that message from another source or its baked into Modeler. Do we know where the origin of that message in Modeler (image 2) lies?

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions