Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 4.0

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
{ 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: getBean() on undefined variable
 
WorkflowManager wm = (WorkflowManager) pluginManager.getBean"workflowManager"); wm.activityVariable(workflowAssignment.getActivityId(),"financedpmApproveStatus","Approve"); 
} catch(NumberFormatException error) 
{ System.out.println(error); 
}

---------------------  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