use of com.centurylink.mdw.plugin.designer.views.ProcessInstanceListView in project mdw-designer by CenturyLinkCloud.
the class WorkflowElementActionHandler method showInstances.
public void showInstances(WorkflowElement element) {
if (element instanceof WorkflowProject) {
// TODO myTasks is hardcoded
WorkflowProject project = (WorkflowProject) element;
try {
IViewPart viewPart = getPage().showView("mdw.views.designer.list.myTasks");
if (viewPart != null) {
MyTasksView myTasksView = (MyTasksView) viewPart;
myTasksView.setProject(project);
myTasksView.refreshTable();
}
} catch (PartInitException ex) {
PluginMessages.log(ex);
}
} else if (element instanceof WorkflowProcess) {
try {
IViewPart viewPart = getPage().showView("mdw.views.designer.process.instance.list");
if (viewPart != null) {
ProcessInstanceListView instancesView = (ProcessInstanceListView) viewPart;
instancesView.setProcess((WorkflowProcess) element);
}
} catch (PartInitException ex) {
PluginMessages.log(ex);
}
}
}
use of com.centurylink.mdw.plugin.designer.views.ProcessInstanceListView in project mdw-designer by CenturyLinkCloud.
the class ProcessEditor method showInstances.
public void showInstances() {
try {
IViewPart viewPart = getSite().getPage().showView("mdw.views.designer.process.instance.list");
if (viewPart != null) {
ProcessInstanceListView instancesView = (ProcessInstanceListView) viewPart;
instancesView.setProcess(getProcess());
}
} catch (PartInitException ex) {
PluginMessages.log(ex);
}
}
Aggregations