Hi All
I’ve read Get argument from an process with exception in REFramework - #5 by loginerror. But i’m not really any wiser - can anybody explain it Again with reference to below?
I want, when I get an exception in a try-catch block to pass-on a specific variable/argument to main.
Organization in my xaml (statemachine):
Main
- Process Transaction (state)
- Process (invoked)
- Try
- Invoked action - it sometimes faults (I want the out argument “out_Salgsordrenr” to bubble upwards)
- Catch
- Add log fields: Salgsordrenr ; in ; string ; out_Salgsordrenr
- Assign: Exception.data(“Salgsordrenr”) = Salgsordrenr
Main
- Try
- Process (invoked)
- Cleanse (state)
- Sequence
- Assign exception.data(“Salgsordrenr”)
- Sequence
Can’t save/run due to this fault in Cleanse:
Compiler error(s) encountered processing expression “exception.data(“Salgsordrenr”)”.
Reference to a non-shared member requires an object reference.
Am I placing the activities the wrong place?