if(actionId!=null) transientVars.put("actionId", actionId);
if (actionId != null) { transientVars.put("actionId", actionId); }
    protected void populateTransientMap(WorkflowEntry entry, Map transientVars, List registers, Integer actionId, Collection currentSteps) throws WorkflowException {        transientVars.put("context", context);        transientVars.put("entry", entry);        transientVars.put("store", getPersistence());        transientVars.put("descriptor", getWorkflow(entry.getWorkflowName()));      if(actionId!=null)        transientVars.put("actionId", actionId);        transientVars.put("currentSteps", Collections.unmodifiableCollection(currentSteps));        // now talk to the registers for any extra objects needed in scope        for (Iterator iterator = registers.iterator(); iterator.hasNext();) {            RegisterDescriptor register = (RegisterDescriptor) iterator.next();            Map args = register.getArgs();            String type = register.getType();            String clazz;            if ("remote-ejb".equals(type)) {                clazz = RemoteEJBRegister.class.getName();            } else if ("local-ejb".equals(type)) {                clazz = LocalEJBRegister.class.getName();            } else if ("jndi".equals(type)) {                clazz = JNDIRegister.class.getName();            } else if ("bsf".equals(type)) {                clazz = BSFRegister.class.getName();            } else if ("beanshell".equals(type)) {                clazz = BeanShellRegister.class.getName();            } else {                clazz = (String) args.get(CLASS_NAME);            }            Register r = (Register) loadObject(clazz);            if (r == null) {                String message = "Could not load register class: " + clazz;                throw new WorkflowException(message);            }            try {                transientVars.put(register.getVariableName(), r.registerVariable(context, entry, args));            } catch (Exception e) {                String message = "An unknown exception occured while registering variable using class: " + clazz;                context.setRollbackOnly();                throw new WorkflowException(message, e);            }        }    }