Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package org.drools.impl.adapters;
 
 import java.util.List;
 
 import  org.kie.api.runtime.process.ProcessInstance;
 
    public final ProcessInstance delegate;
    public ProcessInstanceAdapter(ProcessInstance delegate) {
        this. = delegate;
    }
	public ProcessInstance getDelegate() {
		return ;
	}
    public String getProcessId() {
        return .getProcessId();
    }
        return new ProcessAdapter(.getProcess());
    }
    public long getId() {
        return .getId();
    }
    public String getProcessName() {
        return .getProcessName();
    }
    public int getState() {
        return .getState();
    }
    public void signalEvent(String typeObject event) {
        .signalEvent(typeevent);
    }
    public String[] getEventTypes() {
        return .getEventTypes();
    }
    public static List<org.drools.runtime.process.ProcessInstanceadaptProcessInstances(Collection<ProcessInstance> processes) {
        for (ProcessInstance process : processes) {
            result.add(new ProcessInstanceAdapter(process));
        }
        return result;
    }
    @Override
    public int hashCode() {
        return .hashCode();
    }
    @Override
    public boolean equals(Object obj) {
        return obj instanceof ProcessInstanceAdapter && .equals(((ProcessInstanceAdapter)obj).);
    }
New to GrepCode? Check out our FAQ X