I have a tasklist, which I write into an Anylogic Database. Each row in that table represents one task and includes information such as part, required resources, location, etc. For each task, there are multiple subtasks as well as multiple “on finished” tasks to do. My idea was to write these subtasks and “on finished” tasks as functioncalls directly into the table in one column each, allowing me to have an overview of all of the tasks in one place, instead of writing them into the model logic directly, mainly due to the amount of tasks I have to perform.
As specified above I attempted to write these tasks as code into the table. Then the idea would be to either use the code as a string and call executeAction() or use the code type and CodeValue.execute() to run the code. I am only able to run traceln() from. Any other actions trying to alter the state of the model result in a root: null error, which I am unable to interpret. I have tried debugging the code I wrote into the table by running it directly in the model as a function. This showed that the function itself works, but once I put it into the database it no longer does.
tungumon is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.