folgendes Problem. Ich möchte eine Executable-Class aus einem Script aufrufen jedoch die übergebene Map vorher noch überarbeiten. Ich hab dazu bereits hier in der Community gesucht und Lösungen gefunden, jedoch hab ich noch ein Problem damit.
wenn ich den "normalen Weg" verwende kann die Executable Class ausgeführt werden und es gibt kein Problem.
Will ich nun aber die selber Executable Class als Instanz aufrufen, damit ich der Funktion die überarbeitete Map übergeben kann, bekomme ich den Fehler das die Class nicht gefunden wird.
Fehler der geworfen wird.
WARN 21.01.2016 16:22:30.603 (de.espirit.firstspirit.client.action.WorkflowAction): Error creating task - de.espirit.firstspirit.access.script.ExecutionException: Unknown class: WfFindRelatedObjectsExecutable : at Line: 9 : in file: inline evaluation of: ``__execute() { //!Beanshell import com.test.firstspirit.workflows.release.WfFindRe . . . '' : new WfFindRelatedObjectsExecutable ( )
Called from method: __execute at line 9
FSVersion=5.2.212.71463#3255;JDK=1.8.0_60 64bit Oracle Corporation;OS=Windows 7 6.1 amd64;Date=21.01.2016 16:22:30
de.espirit.firstspirit.access.script.ExecutionException: Unknown class: WfFindRelatedObjectsExecutable : at Line: 9 : in file: inline evaluation of: ``__execute() { //!Beanshell import com.test.firstspirit.workflows.release.WfFindRe . . . '' : new WfFindRelatedObjectsExecutable ( )
Called from method: __execute at line 9
at de.espirit.firstspirit.server.script.BeanshellScriptEngine$BeanshellExecutable.execute(BeanshellScriptEngine.java:111)
at de.espirit.firstspirit.server.script.BeanshellScriptEngine$BeanshellExecutable.execute(BeanshellScriptEngine.java:84)
at de.espirit.firstspirit.client.gui.applications.ApplicationTabRegistry$IdentifiableExecutable.execute(ApplicationTabRegistry.java:104)
at de.espirit.firstspirit.server.taskmanagement.TaskImpl.doTransition(TaskImpl.java:1147)
at de.espirit.firstspirit.server.taskmanagement.TaskImpl.doAutomaticActivities(TaskImpl.java:1602)
at de.espirit.firstspirit.server.taskmanagement.TaskImpl.doTransition(TaskImpl.java:1217)
at de.espirit.firstspirit.server.taskmanagement.TaskImpl.doTransition(TaskImpl.java:1084)
at de.espirit.firstspirit.client.action.WorkflowAction.startWorkflow(WorkflowAction.java:494)
at de.espirit.firstspirit.client.action.WorkflowAction.startWorkflow(WorkflowAction.java:108)
at de.espirit.firstspirit.client.action.WorkflowAction.startWorkflow(WorkflowAction.java:118)
at de.espirit.firstspirit.client.action.WorkflowUtil.startWorkflow(WorkflowUtil.java:65)
at de.espirit.firstspirit.client.action.WorkflowMenuAction$WFStartAction.actionPerformed(WorkflowMenuAction.java:269)
at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
at javax.swing.AbstractButton.doClick(Unknown Source)
at javax.swing.plaf.basic.BasicMenuItemUI.doClick(Unknown Source)
at javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(Unknown Source)
at java.awt.Component.processMouseEvent(Unknown Source)
at javax.swing.JComponent.processMouseEvent(Unknown Source)
at java.awt.Component.processEvent(Unknown Source)
at java.awt.Container.processEvent(Unknown Source)
at java.awt.Component.dispatchEventImpl(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Window.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(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.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
at java.awt.EventQueue$4.run(Unknown Source)
at java.awt.EventQueue$4.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 de.espirit.firstspirit.client.AWTDispatchingEventQueue.defaultDispatchEvent(AWTDispatchingEventQueue.java:161)
at de.espirit.firstspirit.client.AWTDispatchingEventQueue._dispatchEvent(AWTDispatchingEventQueue.java:138)
at de.espirit.firstspirit.client.AWTDispatchingEventQueue.dispatchEvent(AWTDispatchingEventQueue.java:131)
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)
Caused by: bsh.EvalError: Unknown class: WfFindRelatedObjectsExecutable : at Line: 9 : in file: inline evaluation of: ``__execute() { //!Beanshell import com.test.firstspirit.workflows.release.WfFindRe . . . '' : new WfFindRelatedObjectsExecutable ( )
Called from method: __execute
at bsh.BSHAllocationExpression.objectAllocation(BSHAllocationExpression.java:98)
at bsh.BSHAllocationExpression.eval(BSHAllocationExpression.java:62)
at bsh.BSHPrimaryExpression.eval(BSHPrimaryExpression.java:102)
at bsh.BSHPrimaryExpression.eval(BSHPrimaryExpression.java:47)
at bsh.BSHBlock.evalBlock(BSHBlock.java:130)
at bsh.BSHBlock.eval(BSHBlock.java:80)
at bsh.BshMethod.invokeImpl(BshMethod.java:371)
at bsh.BshMethod.invoke(BshMethod.java:267)
at bsh.BshMethod.invoke(BshMethod.java:170)
at bsh.PreparsedScript.invoke(PreparsedScript.java:66)
at de.espirit.firstspirit.server.script.BeanshellScriptEngine$BeanshellExecutable.execute(BeanshellScriptEngine.java:100)
... 52 more
Das Script wird über einen Workflow aufgerufen, falls das eine Rolle spielen sollte und ich verwende die FS Version 5.2