Raise Errors/Warnings/Information from Automation

Questions about and code samples for automation process code snippets within Select.
Post Reply
elimalone19
Posts: 23
Joined: Mon Jan 31, 2022 2:26 pm

Raise Errors/Warnings/Information from Automation

Post by elimalone19 »

Is there any way to raise Errors/Warnings/Information in a python automation snippet, similar to how its done in a COR?
BobRichards
Posts: 1376
Joined: Wed Jan 15, 2014 3:50 pm
Location: Raleigh, NC
Contact:

Re: Raise Errors/Warnings/Information from Automation

Post by BobRichards »

No.

What are message are you wanting to persist? Ultimately all messages are generated as a result of a COR validation aspect rules raising messages. Your automation snippet could set a specific tag in an IOrderItem and a COR validation could be written to detect the event and raise a message. Or you could create a custom field text box and if the value is set, the COR validation script could raise a message.

The trick is always how to disable the message when you want to stop raising the message.
Bob Richards, Senior Software Developer, SoftPro
elimalone19
Posts: 23
Joined: Mon Jan 31, 2022 2:26 pm

Re: Raise Errors/Warnings/Information from Automation

Post by elimalone19 »

I think going down that route would be a little too over-engineered. Thank you for the information though!
Post Reply