12-02-2019 04:50 AM
Hello All,
I want to fetch all process Definition variables from process Definition Key !!
is there any documentation , API or Example please provide asap.
12-03-2019 10:01 PM
@bassam_al-saror please help me to find this. Thanks in advance.
12-04-2019 06:43 AM
you can only query varirables from a particular execution, create a native query instead of using the Java API
01-08-2020 10:53 PM
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.
01-10-2020 01:25 AM
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
Explore our Alfresco products with the links below. Use labels to filter content by product module.