Start a topic
With the exception of Windchill, The PTC Community is on read-only status until April 6 in preparation for moving our community to a new platform. Learn more here
cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

The PTC Community is on temporary read only status in preparation for moving our community to a new platform. Learn more here

Translate the entire conversation x

Throw exception in an info engine task

VM_13704617
8-Gravel

Throw exception in an info engine task

Hi all,
I am creating a new Info Engine(IE) task. That IE task requires a string parameter as input and it calls another IE task inside. So in my new IE task, I perform a validation and when it succeeds I call another IE task. But if the validation fails, I need to throw an exception or communicate to the user about the error message. How can we do it? I am testing it using the PTC IE domain in WRS.

1 REPLY 1

Hello,

I do not see any replies here yet, so I will throw in a possible solution for you as it is what I am doing for some of my IE tasks.

 

When failures occur and you catch them within the IE task, you can create a group of your own design with an element that describes the failure and return that group, then when processing the returned information check for group containing the key that signals error and key's value describing the failure.

 

Hope that helps ya, cheers

Announcements


Top Tags