Hi, I want to change something in YAWL API.
However, when I try to run the API, I don't know which main function should I choose so that I can get same result as I run controlpanel and resource service. When I run YControlPanel class, there is a nullPointException Error like this.
Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException
at org.yawlfoundation.yawl.controlpanel.components.ComponentsPane.enableButton(ComponentsPane.java:139)
at org.yawlfoundation.yawl.controlpanel.components.ComponentsPane.statusChanged(ComponentsPane.java:59)
at org.yawlfoundation.yawl.controlpanel.pubsub.Publisher.addEngineStatusListener(Publisher.java:24)
at org.yawlfoundation.yawl.controlpanel.components.ComponentsPane.<init>(ComponentsPane.java:45)
at org.yawlfoundation.yawl.controlpanel.YControlPanel.createComponentsPanel(YControlPanel.java:114)
at org.yawlfoundation.yawl.controlpanel.YControlPanel.buildUI(YControlPanel.java:95)
at org.yawlfoundation.yawl.controlpanel.YControlPanel.<init>(YControlPanel.java:41)
at org.yawlfoundation.yawl.controlpanel.YControlPanel$3.run(YControlPanel.java:65)
at java.awt.event.InvocationEvent.dispatch(Unknown Source)
at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
at java.awt.EventQueue.access$500(Unknown Source)
at java.awt.EventQueue$3.run(Unknown Source)
at java.awt.EventQueue$3.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)
How can I fix this or what should I run?

I want to run YAWL API in eclipse so that I can do debugging with eclipse, so I tried to run YControlPanel.java file in the eclipse but it showed an error message like an image and didn't work.
What I exactly want to do is to get an enabled worklist for current status. I want to add this information (enabled workitem list) to the event log (for each specification) so that I can figure out which choices I could execute. What I understood was that the enabled information is stored in WorkItemList temporarily so that I couldn't attach it to the log. Am I on the right way?

I want to run YAWL API in eclipse so that I can do debugging with eclipse, so I tried to run YControlPanel.java file in the eclipse but it showed an error message like an image and didn't work.
What I exactly want to do is to get an enabled worklist for current status. I want to add this information (enabled workitem list) to the event log (for each specification) so that I can figure out which choices I could execute. What I understood was that the enabled information is stored in WorkItemList temporarily so that I couldn't attach it to the log. Am I on the right way?

Michael Adams

Mon, 02/03/2020 - 07:36

The YControlPanelBootstrap class starts the control panel. But you don't want to run that to get a worklist, rather use the API InterfaceB_EnvironmentBasedClient (in the engine package).