use of com.day.cq.workflow.exec.filter.WorkItemFilter in project acs-aem-commons by Adobe-Consulting-Services.
the class SyntheticWorkflowSessionTest method setUp.
@Before
public void setUp() {
session = new SyntheticWorkflowSession(new SyntheticWorkflowRunnerImpl(), resourceResolver.adaptTo(Session.class));
workflowData = new SyntheticWorkflowData("JCR_PATH", "/content/test");
workflowData.getMetaDataMap().put("cat", "meow");
workflowData.getMetaDataMap().put("bird", "ka-kaw");
syntheticWorkflow = new SyntheticWorkflow("test", workflowData);
SyntheticWorkItem syntheticWorkItem = SyntheticWorkItem.createSyntheticWorkItem(syntheticWorkflow.getWorkflowData());
wrappedWorkItem = (WorkItem) Proxy.newProxyInstance(WrappedSyntheticWorkItem.class.getClassLoader(), new Class[] { WorkItem.class, WrappedSyntheticWorkItem.class }, syntheticWorkItem);
SyntheticRoute syntheticRoute = new SyntheticRoute(false);
route = (Route) syntheticRoute;
workItemFilter = new WorkItemFilter() {
@Override
public boolean doInclude(WorkItem workItem) {
return false;
}
};
workflowModelFilter = new WorkflowModelFilter() {
@Override
public boolean doInclude(WorkflowModel workflowModel) {
return false;
}
};
}
Aggregations