use of org.activiti.explorer.navigation.UriFragment in project Activiti by Activiti.
the class TasksPage method getUriFragment.
@Override
protected UriFragment getUriFragment(String taskId) {
UriFragment taskFragment = new UriFragment(TaskNavigator.TASK_URI_PART);
if (taskId != null) {
taskFragment.addUriPart(taskId);
}
taskFragment.addParameter(TaskNavigator.PARAMETER_CATEGORY, TaskNavigator.CATEGORY_TASKS);
return taskFragment;
}
use of org.activiti.explorer.navigation.UriFragment in project Activiti by Activiti.
the class InboxPage method getUriFragment.
@Override
protected UriFragment getUriFragment(String taskId) {
UriFragment taskFragment = new UriFragment(TaskNavigator.TASK_URI_PART);
if (taskId != null) {
taskFragment.addUriPart(taskId);
}
taskFragment.addParameter(TaskNavigator.PARAMETER_CATEGORY, TaskNavigator.CATEGORY_INBOX);
return taskFragment;
}
use of org.activiti.explorer.navigation.UriFragment in project Activiti by Activiti.
the class QueuedPage method getUriFragment.
@Override
protected UriFragment getUriFragment(String taskId) {
UriFragment taskFragment = new UriFragment(TaskNavigator.TASK_URI_PART);
if (taskId != null) {
taskFragment.addUriPart(taskId);
}
taskFragment.addParameter(TaskNavigator.PARAMETER_CATEGORY, TaskNavigator.CATEGORY_QUEUED);
if (groupId != null) {
taskFragment.addParameter(TaskNavigator.PARAMETER_GROUP, groupId);
}
return taskFragment;
}
use of org.activiti.explorer.navigation.UriFragment in project Activiti by Activiti.
the class ActiveProcessDefinitionPage method createList.
protected Table createList() {
processDefinitionTable = new Table();
processDefinitionListQuery = new ActiveProcessDefinitionListQuery();
processDefinitionListContainer = new LazyLoadingContainer(processDefinitionListQuery);
processDefinitionTable.setContainerDataSource(processDefinitionListContainer);
// Column headers
processDefinitionTable.addContainerProperty("name", String.class, null);
processDefinitionTable.setColumnHeaderMode(Table.COLUMN_HEADER_MODE_HIDDEN);
// Listener to change right panel when clicked on a user
processDefinitionTable.addListener(new Property.ValueChangeListener() {
private static final long serialVersionUID = 1L;
public void valueChange(ValueChangeEvent event) {
// the value of the property is the itemId of the table entry
Item item = processDefinitionTable.getItem(event.getProperty().getValue());
if (item != null) {
String processDefinitionId = (String) item.getItemProperty("id").getValue();
setDetailComponent(new ActiveProcessDefinitionDetailPanel(processDefinitionId, ActiveProcessDefinitionPage.this));
// Update URL
ExplorerApp.get().setCurrentUriFragment(new UriFragment(ActiveProcessDefinitionNavigator.ACTIVE_PROC_DEF_URI_PART, processDefinitionId));
} else {
// Nothing selected
setDetailComponent(null);
ExplorerApp.get().setCurrentUriFragment(new UriFragment(ActiveProcessDefinitionNavigator.ACTIVE_PROC_DEF_URI_PART));
}
}
});
return processDefinitionTable;
}
use of org.activiti.explorer.navigation.UriFragment in project Activiti by Activiti.
the class ProcessDefinitionPage method changeUrl.
protected void changeUrl(String processDefinitionId) {
UriFragment processDefinitionFragment = new UriFragment(ProcessNavigator.process_URI_PART, processDefinitionId);
ExplorerApp.get().setCurrentUriFragment(processDefinitionFragment);
}
Aggregations