Hi,
While trying to export the state definition I found that the actions are writtten using the below method :
private void writeAction(final Action<?, ?, ?, ?> action) {
if(isExternalAction(action))
writeLine("<sqrl:action content="+quoteName(action.toString())+"/>");
}
Its is doing toString on the action object. In my case it generates following XML :
<sqrl:action content="com.mycomp.workflow.actions.WorkflowEditAction@7e4c974d"/>
Now when I am trying to import this back. In StateMachineImporterImpl.startElement() , It is looking for '#'
else if(localName.equals("action") && uri.equals(SQRL_NAMESPACE)) {
String actionContent = attributes.getValue("content");
int pos = actionContent.indexOf("#");
String actionSchema = actionContent.substring(0, pos);
Now since in my case there is no '#', I am getting IndexOutOfBound.
Any suggestion ?