In my model I have a Resource Pool representing an equipment, which has a downtime defined by a Downtime block. The Downtime is defined by triggers and sends its tasks to a flowchart.
Besides the standard Downtime procedure I want to trigger a Downtime programmatically, using:
`cleaning_and_conditioning_mld_617_411.startTask(Eq_MLD_617_411);`
I get the following error:
Eq_MLD_617_411 cannot be resolved to a variable
How can I fix this?
Edit: changed the code to
cleaning_and_conditioning_mld_617_411.startTask(new Eq_MLD_617_411());
Now I get a NullPointerException (see Picture 6).
Please find attached pictures of the model. [1]: https://i.stack.imgur.com/xho4L.png [2]: https://i.stack.imgur.com/C8Ybx.png [3]: https://i.stack.imgur.com/pyPGH.png [4]: https://i.stack.imgur.com/3WX8f.png [5]: https://i.stack.imgur.com/5M2lc.png [6]: https://i.stack.imgur.com/xGB1W.png