I want to pass a array of string in setVariables() and also recover them in getvariables()
Hi Vibhu,
one of the possibilities:
String[] strings = new String[1];
strings[0] = "Hello world!";
runtimeService.setVariableLocal(oneTaskProcess.getId(), "array", strings);
Object arrayVariable = runtimeService.getVariable(oneTaskProcess.getId(), "array");
assertThat(arrayVariable, IsInstanceOf.instanceOf(String[].class));
assertThat(((String[])arrayVariable)[0], is("Hello world!"));
Regards
Martin