Package org.joget.workflow.model

Examples of org.joget.workflow.model.WorkflowVariable


                  // null check for Oracle DB to prevent missing workflow variable
                  if (c == null) {
                      c = "";
                  }
                  if (c instanceof String || c instanceof Long || c instanceof Boolean || c instanceof Double) {
                     WorkflowVariable vd = new WorkflowVariable();
                     vd.setId(variableId);
                     vd.setToUpdate(eaName.equalsIgnoreCase(VARIABLE_TO_PROCESS_UPDATE));
                     vd.setVal(c);
                     vd.setJavaClass(c.getClass());

                     WMEntity varEnt = Shark.getInstance().getAdminMisc().getVariableDefinitionInfoByUniqueProcessDefinitionName(
                                            sConn.getSessionHandle(),
                                            act.container().manager().name(),variableId);
                    
                     String varName = variableId;
                     if (varEnt != null) {
                        varName = varEnt.getName();
                        if (varName == null || varName.equals("")) {
                           varName = variableId;
                        }
                     }
                     String varDesc = "";
                     if (varEnt != null) {
                        WMFilter filter = new WMFilter("Name", WMFilter.EQ, "Description");
                        filter.setFilterType(XPDLBrowser.SIMPLE_TYPE_XPDL);
                        varDesc = Shark.getInstance()
                           .getXPDLBrowser()
                           .listAttributes(sConn.getSessionHandle(),
                                           varEnt,
                                           filter,
                                           false)
                           .getArray()[0].getValue().toString();
                     }

                     vd.setName(varName);
                     vd.setDescription(varDesc);
                     ret.add(vd);
                  }
               }
            }
         }
View Full Code Here


            List<WorkflowVariable> processVariableList = new ArrayList();
            Map variableMap = act.process_context(shandle);
            Iterator it = variableMap.entrySet().iterator();
            while (it.hasNext()) {
                Map.Entry<String, String> pairs = (Map.Entry) it.next();
                WorkflowVariable var = new WorkflowVariable();
                var.setId(pairs.getKey());
                var.setVal(pairs.getValue());
                processVariableList.add(var);
            }
            workflowAssignment.setProcessVariableList(processVariableList);

            // execute tool
View Full Code Here

TOP

Related Classes of org.joget.workflow.model.WorkflowVariable

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.