Hi all i have a sample callable subprocess as below: With SubProcessCall util, i can trigger to run it and also control input&output. So i want to go a step futher to monitor that such process. Is there any API or util that could help me to monitor this process? like when process come to step Do first thing, i will be notified and i can access variable in/out or just simple logging out the name of that ivy element.? Also the same question for other kind of process (sub process/start process/...) Thanks all asked 06.12.2016 at 06:42 trungdv |
Should be an easy task with process engine of 6.0 and upwards. Be aware that the shown example uses non-public API and that it can change without any notice. The following code show a custom engine execution listener that logs the data and process element PID of every element that is executed:
I've created a simple demo project here: https://answers.axonivy.com/upfiles/engineExecutionListener_641.iar answered 06.12.2016 at 12:51 Reguel Werme... ♦♦ Alex Suter ♦♦ yes, it worked. so can i get the name/description of PID?
(07.12.2016 at 07:52)
trungdv
Yes you can navigate to the concrete process element model like this:
(07.12.2016 at 08:42)
Reguel Werme... ♦♦
Hi ivy team How can we prevent initialization many times? everytime i start process, it init one LoggingListener and i don't know how to avoid this. I've tried with removeElementHistoryListener() but i can't remove exactly listener that i've created before. Thanks
(12.12.2016 at 12:52)
trungdv
didn't test it but I think you could implement the clear() method. As far as I remember it is called at least whenever an engine stopps:
(12.12.2016 at 12:56)
Reguel Werme... ♦♦
Hi @Reguel Werme... ♦♦ i guess this code just be able to monitor on the process which is in same project with the listener, right? If i have project B depend on project A, then from B i register listener and try to call subprocess of A, then listener will not work. Do i miss something?
(26.12.2016 at 07:59)
trungdv
|
Once you sign in you will be able to subscribe for any updates here
By RSS:Markdown Basics
Tags:
Asked: 06.12.2016 at 06:42
Seen: 2,298 times
Last updated: 07.03.2018 at 10:39