Hello All,
I want to fetch all process Definition variables from process Definition Key !!
is there any documentation , API or Example please provide asap.
@bassam_al-saror please help me to find this. Thanks in advance.
you can only query varirables from a particular execution, create a native query instead of using the Java API
I am trying to get the process definition variables before creating the process instance, if you have worked like this scenario or any idea to get variables kindly help me out. Thanks in advance.
Hi @abbask01 ,
I have tried the following way to get variables from form table but i'm unable to get the variables, kindly help me out if have any idea
List<Execution> variables = runtimeService.createNativeExecutionQuery().sql("select _FORM.*" + " from form _FORM" + " where app_definition_id ="+appDefinitionId+" and name like '%closed edit readonly%'").list(); List<Map<String, Object>> customTaskList = new ArrayList<>(); for (Execution vars : variables) { Map<String, Object> map = new LinkedHashMap<>(); map.put("variableId", vars.getId()); map.put("variableName", vars.getName()); map.put("variableDescription", vars.getDescription()); customTaskList.add(map); } System.out.println("printing list"); customTaskList.forEach(System.out::println);
Thanks & Regards
Amruta Wandakar
Ask for and offer help to other Alfresco Process Services and Activiti Users and members of the Alfresco team.
By using this site, you are agreeing to allow us to collect and use cookies as outlined in Alfresco’s Cookie Statement and Terms of Use (and you have a legitimate interest in Alfresco and our products, authorizing us to contact you in such methods). If you are not ok with these terms, please do not use this website.