- From: Barnett, James <James.Barnett@aspect.com>
- Date: Fri, 13 Apr 2007 08:41:18 -0400
- To: "johnpremi" <john_gnan@hotmail.com>, <www-voice@w3.org>
This is the wrong list. You should post to the list for the SCXML interpreter that you are using, if such a list exists. - Jim -----Original Message----- From: www-voice-request@w3.org [mailto:www-voice-request@w3.org] On Behalf Of johnpremi Sent: Thursday, April 12, 2007 8:24 AM To: www-voice@w3.org Subject: Parallelism in state chart XML Hi there, I had been having a problem with the following SCXML. It has a parallel state for SLOT/TASKS. I am trying to achieve multiple transition within a state. I am getting the following java exception: I have also attached the SCXML for understanding what I am trying to do with it. Any help would be greatly appreciated. 2007-04-12 11:52:44,922 INFO [scxml.app.log] null: Slot Init State 2007-04-12 11:52:44,922 INFO [scxml.app.log] null: Task Init State 2007-04-12 11:52:44,954 DEBUG [mdb] SQL Query - select T_Schedule.SCH_ID,SCH_TYPE,SCH_KIND,SCH_USER, SCH_PRIORITY,SCH_NAME,SCH_CRON,SCH_DISABLE,SCH_RELID,SCH_PARENTID,SCH_AB ORT_INFO,SCH_TIME_POLICY,SCH_KIND,SCH_SUB_TYPE,SLOT_ID,RESID ,RESTYPE,SLOT_FROM_TIME , SLOT_TO_TIME,SLOT_CAPACITY , SLOT_STATE,aTask.TASK_ID ,aTask.IRESID,aTask.LRESID ,aTask.TASK_OPKID , aTask.TASK_OPKTYPE , aTask.TASK_JOBCMDSTR ,aTask.TASK_DELTA ,aTask.TASK_STATE , bTask.TASK_ID ,bTask.IRESID,bTask.LRESID ,bTask.TASK_OPKID , bTask.TASK_OPKTYPE , bTask.TASK_JOBCMDSTR ,bTask.TASK_DELTA ,bTask.TASK_STATE,aTask.TASK_TIME,bTask.TASK_TIME from T_schedule,T_SLOT,T_TASK aTask,T_TASK bTASK where T_Schedule.SCH_ID=? and T_Schedule.SCH_ID=T_SLOT.SCH_ID and T_SCHEDULE.SCH_ID=aTASK.SCH_ID and T_SCHEDULE.SCH_ID=bTASK.SCH_ID and aTASK.TASK_ID != bTASK.TASK_ID group by t_schedule.sch_id 2007-04-12 11:52:44,954 INFO [STDOUT] MSlotTaskFSM :AQUIRE inside MSlotTaskFSM of aTask: 2007-04-12 11:52:44,954 INFO [STDOUT] MSlotTaskFSM :RELEASE inside MSlotTaskFSM of bTask: 2007-04-12 11:52:44,954 INFO [STDOUT] Inside ProcessEvent :Schedule Id is :11:506 2007-04-12 11:52:45,109 WARN [org.apache.commons.scxml.env.SimpleErrorReporter] NON_DETERMINISTIC (Multiple conflicting transitions enabled.): [transition (event = CreateATaskEvent, cond = _eventdata.slotAvailable=true, from = /testMain/null/slotState/MSlotInitState, to = /testMain/null/slotState/MSlotHeldState.aquireSlot), transition (event = CreateATaskEvent, cond = !_eventdata.slotAvailable, from = /testMain/null/slotState/MSlotInitState, to = /testMain/null/slotState/MSlotQueuedState.queueSlot), transition (event = CreateATaskEvent, cond = _eventdata.slotavailable=true, from = /testMain/null/slotState/MSlotInitState, to = /testMain/null/slotState/MSlotLockedState.lockSlot)] 2007-04-12 11:52:45,109 WARN [org.apache.commons.scxml.env.SimpleErrorReporter] ILLEGAL_CONFIG (Multiple OR states active for state slotState): /testMain/null/slotState : [/testMain/null/slotState/MSlotHeldState.aquireSlot, /testMain/null/slotState/MSlotQueuedState.queueSlot, /testMain/null/slotState/MSlotLockedState.lockSlot] 2007-04-12 11:52:45,109 ERROR [com.hp.m.msched.core.MSlotTaskFSM] Illegal state machine configuration! org.apache.commons.scxml.model.ModelException: Illegal state machine configuration! at org.apache.commons.scxml.semantics.SCXMLSemanticsImpl.followTransitions( SCXMLSemanticsImpl.java:695) at org.apache.commons.scxml.SCXMLExecutor.triggerEvents(SCXMLExecutor.java: 127) at org.apache.commons.scxml.SCXMLExecutor.triggerEvent(SCXMLExecutor.java:1 60) at com.hp.m.msched.core.MSlotTaskFSM.fireEvent(MSlotTaskFSM.java:151) at com.hp.m.msched.core.MScheduleController.processEvent(MScheduleControlle r.java:71) at com.hp.m.msched.core.MScheduleResourceController.processMessage(MSchedul eResourceController.java:171) at com.hp.m.msched.mmsg.MSchedSCNMessageHandler.processMessage(MSchedSCNMes sageHandler.java:38) at com.hp.m.mmsg.jms.mdb.MDB.onMessage(MDB.java:49) at com.hp.m.mmsg.jms.mdb.MSchedMDB.onMessage(MSchedMDB.java:9) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav a:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor Impl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.jboss.invocation.Invocation.performCall(Invocation.java:359) at org.jboss.ejb.MessageDrivenContainer$ContainerInterceptor.invoke(Message DrivenContainer.java:495) at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invoke( CachedConnectionInterceptor.java:158) at org.jboss.ejb.plugins.CallValidationInterceptor.invoke(CallValidationInt erceptor.java:63) at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterce ptor.java:121) at org.jboss.ejb.plugins.AbstractTxInterceptorBMT.invokeNext(AbstractTxInte rceptorBMT.java:173) at org.jboss.ejb.plugins.MessageDrivenTxInterceptorBMT.invoke(MessageDriven TxInterceptorBMT.java:47) at org.jboss.ejb.plugins.MessageDrivenInstanceInterceptor.invoke(MessageDri venInstanceInterceptor.java:116) at org.jboss.ejb.plugins.RunAsSecurityInterceptor.invoke(RunAsSecurityInter ceptor.java:109) at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:205) at org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invoke(ProxyFactoryF inderInterceptor.java:136) at org.jboss.ejb.MessageDrivenContainer.internalInvoke(MessageDrivenContain er.java:402) at org.jboss.ejb.Container.invoke(Container.java:954) at org.jboss.ejb.plugins.jms.JMSContainerInvoker.invoke(JMSContainerInvoker .java:987) at org.jboss.ejb.plugins.jms.JMSContainerInvoker$MessageListenerImpl.onMess age(JMSContainerInvoker.java:1287) at org.jboss.jms.asf.StdServerSession.onMessage(StdServerSession.java:266) at org.jboss.mq.SpyMessageConsumer.sessionConsumerProcessMessage(SpyMessage Consumer.java:902) at org.jboss.mq.SpyMessageConsumer.addMessage(SpyMessageConsumer.java:170) at org.jboss.mq.SpySession.run(SpySession.java:323) at org.jboss.jms.asf.StdServerSession.run(StdServerSession.java:194) at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecuto r.java:743) at java.lang.Thread.run(Thread.java:534) 2007-04-12 11:52:45,234 INFO [STDOUT] After process Event : inside processMessage 2007-04-12 11:52:45,234 INFO [STDOUT] Inside the checkForEventsInEventQueue: resId:0:1 2007-04-12 11:52:45,234 INFO [STDOUT] Before if - Resource Id in getEventQueue is :0:1 2007-04-12 11:52:45,249 INFO [STDOUT] Inside if - Resource Id in getEventQueue is :0:1 2007-04-12 11:52:45,249 INFO [STDOUT] eventQueue.size():0 2007-04-12 11:52:45,249 INFO [STDOUT] After checkForEventsInEventQueue 2007-04-12 11:52:45,265 DEBUG [com.hp.m.msched.mmsg.MSchedSCNMessageHandler] Finished SCN message processing 2007-04-12 11:52:45,265 DEBUG [com.hp.m.mmsg.jms.mdb.MDB] Finished processing the message http://www.nabble.com/file/7838/ParallelStateCombined.txt.txt ParallelStateCombined.txt.txt -- View this message in context: http://www.nabble.com/Parallelism-in-state-chart-XML-tf3565176.html#a995 8342 Sent from the w3.org - www-voice mailing list archive at Nabble.com.
Received on Friday, 13 April 2007 12:41:29 UTC