private void create() { String s = (String) JOptionPane.showInputDialog( this, "Select Checklist Template:", "Select Template", JOptionPane.PLAIN_MESSAGE, null, new Object[] {"None", "Business Trip", "Sample1"}, "None"); if (s == null) { return; } String processId = null; if ("Sample1".equals(s)) { processId = "org.jbpm.examples.checklist.sample1"; } else if ("Business Trip".equals(s)) { processId = "org.jbpm.examples.checklist.travel"; } long processInstanceId = checklistManager.createContext(processId, getActorId()); String contextName = processInstanceId + ""; contexts.addItem(contextName); contexts.setSelectedItem(contextName); refresh(); }
private void create() { long processInstanceId = checklistManager.createContext("org.jbpm.examples.checklist.sample1"); String contextName = processInstanceId + ""; contexts.addItem(contextName); contexts.setSelectedItem(contextName); refresh(); }