SubProcessDefinitionBuilder(final ProcessDefinitionBuilder processDefinitionBuilder, final SubProcessDefinitionImpl subProcessActivity) { super(new FlowElementContainerDefinitionImpl(), processDefinitionBuilder); subProcessActivity.setSubProcessContainer(getContainer()); }
SubProcessDefinitionBuilder(final ProcessDefinitionBuilder processDefinitionBuilder, final SubProcessDefinitionImpl subProcessActivity) { super(new FlowElementContainerDefinitionImpl(), processDefinitionBuilder); subProcessActivity.setSubProcessContainer(getContainer()); }
/** * Initiates the building of a new {@link DesignProcessDefinition} with the given name and version. This method is the entry point of this builder. It must * be called before any other method. The <code>DesignProcessDefinition</code> building will be completed when the method {@link #done()} or * {@link #getProcess()} is called. * * @param name * the process name * @param version * the process version * @return this builder. Its ID is ZERO, as it is not deployed yet. */ public ProcessDefinitionBuilder createNewInstance(final String name, final String version) { designErrors = new ArrayList<>(5); if (name == null || name.isEmpty()) { designErrors.add("name of the process is null or empty"); } process = new DesignProcessDefinitionImpl(name, version); process.setId(0); // To override inherited ID generation process.setProcessContainer(new FlowElementContainerDefinitionImpl()); return this; }
/** * Initiates the building of a new {@link DesignProcessDefinition} with the given name and version. This method is the entry point of this builder. It must * be called before any other method. The <code>DesignProcessDefinition</code> building will be completed when the method {@link #done()} or * {@link #getProcess()} is called. * * @param name * the process name * @param version * the process version * @return this builder. Its ID is ZERO, as it is not deployed yet. */ public ProcessDefinitionBuilder createNewInstance(final String name, final String version) { designErrors = new ArrayList<>(5); if (name == null || name.isEmpty()) { designErrors.add("name of the process is null or empty"); } process = new DesignProcessDefinitionImpl(name, version); process.setId(0); // To override inherited ID generation process.setProcessContainer(new FlowElementContainerDefinitionImpl()); return this; }