As we transition to the new Hyland Community, some post links may be temporarily disrupted as we finalize redirects. We apologize for the inconvenience and are working to resolve this as quickly as possible. Details.
final String createTaskDetailsUrl(ExecutionContext executionContext, TaskInstance taskInstance) { StringBuilder urlBuffer = new StringBuilder("base url of your host"); // command path urlBuffer.append("/command/ui/"); urlBuffer.append(CustomUIActionCommandProcessor.REG_KEY_OPENTASK) .append(CustomUIActionCommandProcessor.URL_QUERY_STRING); // task id String taskId = BPMEngineRegistry.createGlobalId("jbpm", String .valueOf(taskInstance.getId())); urlBuffer.append(OpenWorkflowTaskCommand.PROP_TASKID).append( CustomUIActionCommandProcessor.URL_KEY_VALUE_SEPARATOR).append( taskId); urlBuffer.append(CustomUIActionCommandProcessor.URL_PARAM_SEPARATOR); String taskType = QName.resolveToQNameString(this.namespaceService, taskInstance.getName()); taskType = URLEncoder.encode(taskType); urlBuffer.append(OpenWorkflowTaskCommand.PROP_TASKTYPE).append( CustomUIActionCommandProcessor.URL_KEY_VALUE_SEPARATOR).append( taskType); urlBuffer.append(CustomUIActionCommandProcessor.URL_PARAM_SEPARATOR); // transition urlBuffer.append(OpenWorkflowTaskCommand.PROP_OUTCOME).append( CustomUIActionCommandProcessor.URL_KEY_VALUE_SEPARATOR).append( "dialog:manageTask"); return urlBuffer.toString(); }