You are here

Workflow

The Activiti workflow engine is built into SkyVault Community Edition. It also provides UI in SkyVault Share to allow you to create standard workflows and manage them. In addition, as a developer, you can create custom workflows and manage them programmatically.
Information Workflow
Public Java API To start and manage workflow instances use the WorkflowService, see also the JavaDocs.
Repository JavaScript API Use the workflow root object, for more info see the Workflow JavaScrip API documentation.

Example of how to start a workflow with an attached file:

var aFile = search.findNode("<NodeRef>");
var workflowAction = workflow.getDefinitionByName('activiti$some-process-definition-name');
var package= workflow.createPackage();
package.addNode(aFile);
var parameters = new Array(2);
parameters["bpm:workflowDescription"] = "Testing BOPP Workflow ";
parameters["someCustomWorkflowVariable"]="someVal";
var futureDate = new Date();
futureDate.setDate(futureDate.getDate() + 7);
parameters["bpm:workflowDueDate"] = futureDate; 
workflowAction.startWorkflow(package, parameters);               
SkyVault REST API The SkyVault REST API provides APIs for dealing with Process Definitions, Processes, and Tasks.
Mobile SDK (iOS) The WorkflowService is exposed. The Model also exposes various Workflow data structures.
Mobile SDK (Android) The Node is exposed in the SDK Model. You can review the documentation for SkyVaultNode
More Information