Versions Compared

Key

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

Hi,

Somebody can show me a working examle code, where are using a checkbox list with beanshell  and in the beanshell getting a workflow variable to local variable?

If I using in a textbox #variable.test#, i write this parameter to the textbox field i see the correct value, but in a beanshell can't use this.

Joget 2.0.3 with mysql

I'am trying this:

.....

String test1 = new String("#variable.test#");
  PreparedStatement stmt = con.prepareStatement("SELECT  id, c_SzKor_Nev  from formdata_Jogosultsagok_BF WHERE c_Szolg_Id LIKE 'SAP' and c_user_name = '"test1"' "); // SQL query

...

this:

http://dev.joget.org/community/display/FORUM/workflow+variable\

this:WorkflowManager workflowManager = (WorkflowManager) pluginManager.getBean("workflowManager");
String usernames = workflowManager.getProcessVariable(workflowActivity.getProcessId(), "test"); /

But nor working...I can't get a variable value.

Pls. Show me a working example. This is very important for us! THX