Class DesignerProcessDataEventListener

  • All Implemented Interfaces:
    Serializable, org.jbpm.compiler.xml.ProcessDataEventListener

    public class DesignerProcessDataEventListener
    extends org.kie.workbench.common.services.refactoring.backend.server.impact.ResourceReferenceCollector
    implements org.jbpm.compiler.xml.ProcessDataEventListener, Serializable
    This listener is called by the build process and immediately stores the indexing information (as it is also a ResourceReferenceCollector)

    In the onProcessAdded(Process) method, it stores itself in the Process, allowing the BPMN2FileIndexer to retrieve the DesignerProcessDataEventListener instance later and add it to the indexing information.
    See Also:
    Serialized Form
    • Constructor Detail

      • DesignerProcessDataEventListener

        public DesignerProcessDataEventListener()
    • Method Detail

      • getProcess

        public org.kie.api.definition.process.Process getProcess()
      • onNodeAdded

        public void onNodeAdded​(org.jbpm.workflow.core.Node node)
        Specified by:
        onNodeAdded in interface org.jbpm.compiler.xml.ProcessDataEventListener
      • onProcessAdded

        public void onProcessAdded​(org.kie.api.definition.process.Process process)
        Specified by:
        onProcessAdded in interface org.jbpm.compiler.xml.ProcessDataEventListener
      • onMetaDataAdded

        public void onMetaDataAdded​(String name,
                                    Object data)
        Specified by:
        onMetaDataAdded in interface org.jbpm.compiler.xml.ProcessDataEventListener
      • onComplete

        public void onComplete​(org.kie.api.definition.process.Process process)
        Specified by:
        onComplete in interface org.jbpm.compiler.xml.ProcessDataEventListener
      • onBuildComplete

        public void onBuildComplete​(org.kie.api.definition.process.Process process)
        Specified by:
        onBuildComplete in interface org.jbpm.compiler.xml.ProcessDataEventListener
      • addDistinctProcessVariables

        public void addDistinctProcessVariables​(List<org.jbpm.process.core.context.variable.Variable> variables,
                                                org.kie.workbench.common.services.refactoring.Resource resource)
      • getUniqueVariables

        public Set<String> getUniqueVariables()