You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

I am working on Joget. I want to set  a value to a workflow variable from radio button. I used following code but getting an error.

I am using the following code

-----------code sample in Bean shell form binder-----------------

import org.joget.workflow.model.service.*;
import org.joget.plugin.base.PluginManager;

try

Unknown macro: { String value1 = new String("#variable.field2status#");  //Here i receive value from radio tab but Im am not using this value, i am using  hardcoded value. I am not getting any value here //Setting the value using below code.  Getting error--> Attempt to resolve method}

-----------------------  Error  -------------------------

WARNING: Error executing script
Sourced file: inline evaluation of: ``import org.joget.workflow.model.service.; import org.joget.plugin.base.PluginMa . . . '' : Typed variable declaration : Attempt to resolve method: getBean() on undefined variable or class name: pluginManager : at Line: 9 : in file: inline evaluation of: ``import org.joget.workflow.model.service.; import org.joget.plugin.base.PluginMa . . . '' : pluginManager .getBean ( "workflowManager" )

    at bsh.UtilEvalError.toEvalError(Unknown Source)
    at bsh.UtilEvalError.toEvalError(Unknown Source)
    at bsh.BSHMethodInvocation.eval(Unknown Source)
    at bsh.BSHPrimaryExpression.eval(Unknown Source)
    at bsh.BSHPrimaryExpression.eval(Unknown Source)

Let me know where I am going wrong. I am also not getting any output in the log for system println.

Thanks in advance

Sachin

  • No labels