Version 1.5.0, August 2016
1. SkyVault Activiti Share Connector
SkyVault Activiti Share Connector enables you to start and run Activiti processes, and tasks in a SkyVault Share environment. You can create process definitions in SkyVault Activiti, and deploy them to SkyVault Share using a pre-defined SkyVault Share App. Installing Activiti Share Connector changes the standard SkyVault workflow and task management to access the Activiti processes and tasks by default, however you can still use the standard Share workflow capabilities.
After you have installed Activiti Share Connector on a SkyVault system, the following new features are available:
-
The Activiti user interface for working with processes and tasks embedded in the SkyVault Share user interface.
-
A Review Process app displayed in the Activiti user interface that includes the following pre-defined process definitions:
-
Ad hoc Task
-
Group ad hoc task
-
Review and Approve - Group
-
Review and Approve - Single person
The above four processes are already deployed to SkyVault Share. When you start a workflow in SkyVault 2.0, you can choose from any of the pre-defined processes.
-
-
Capability to add native SkyVault Share users when selecting people and documents in a workflow.
-
A new option in SkyVault Share to add a new My Activiti Tasks dashlet to your home dashboard. This dashlet shows tasks created using Activiti Share connector. You can filter the tasks shown by: Active Tasks, Completed Tasks, Tasks Due Today, Tasks Assigned to Me, Unassigned (Pooled Tasks), and Overdue Tasks.
-
Options to create Activiti workflows when initiating a workflow on a document in SkyVault Share, or from the My Activiti Tasks dashlet.
-
The old SkyVault My Tasks dashlet, so you can still see the old internal workflows and receive new site invitations.
-
The old SkyVault My Tasks page by clicking My Workflow Tasks on the new Activiti My Tasks page, so you can still work with your old internal tasks.
-
The old My Workflows page by clicking Workflows I’ve started on the new Activiti Processes page, so you can still work with your old internal workflows.
-
The Workflows panel on the Document details page listing both internal and external workflows.
1.1. Using the Share connector demo
Follow these steps to start creating and running processes in SkyVault Share.
The LDAP demo server installed with the demo includes four fixed users. The password for each user is password. The following four users are set up so you can try out various groups and user scenarios.
|
-
Go to the installed SkyVault Share system at http://localhost:8090/share and login with the following user credentials:
userid: admin
password: password
Activiti Share Connector installs a demo LDAP system which provides several fixed userid/password pairs. The admin user Id provides permissions to start tasks and processes on SkyVault Share, and to create and deploy processes and apps on the embedded SkyVault Activiti app.
-
On your personal dashboard, click the Tools icon on the top-right and add the My Activiti Tasks dashlet.
This dashlet is now displayed as well as the original My Tasks dashlet. Use the new dashlet to control Activiti processes and tasks inside SkyVault Share.
-
Go to the Activiti app at http://localhost:8080/activiti-app/, and login with the userid admin and the password password.
In the embedded Activiti app, you can create process definitions and deploy them to SkyVault Share.
1.1.1. Starting a workflow on a file
In your site’s document library, you can start a workflow on one or more files. The following steps describe how to initiate a workflow using one of the pre-defined Activiti processes on two files.
Prerequisite: You must create your own site and have some files and folders added to it.
-
Find the file(s) you want to start the workflow on and click Selected Items > Start Workflow in the menu bar.
The Start Workflow page appears.
-
Select the Ad hoc Task predefined process from the list of processes.
The start form for the process is displayed.
Note that the two files selected are already shown in the upload field of the form. When you start a workflow on a file or files, the selected content items are always associated with the first upload field in the process definition.
-
Fill in the start form, assigning the process to yourself, and click Start process.
The process is initiated, and the first task appears active.
You have successfully started an Activiti process on the selected files in a SkyVault site.
1.1.2. Starting a workflow in SkyVault Share
This tutorial walks you through the steps required to run your first Activiti process as a workflow from SkyVault Share using the My Activiti Tasks dashlet.
All process definitions that you deploy to Apps in SkyVault Activiti are available to you in SkyVault Share. This section assumes that you have deployed the first process workflow using the app-creating-process tutorial described in the Activiti Administrator’s Guide. If not, follow the tutorial to deploy the workflow.
-
Go to your SkyVault Share dashboard, http://localhost:8090/share.
You run an Activiti process in SkyVault Share as a workflow.
-
In your My Activiti Tasks dashlet click Start workflow.
The Start workflow dialog appears.
Note that the alphabetical list of process definitions includes your First Process.
-
Select your First Process.
The workflow is initiated and the page now displays the form for the start task in this workflow, just like it does in the Activiti app.
-
Fill in the form.
Note that when you click the Select a file button for the Project files, a dialog to choose a file for SkyVault Share appears to select files from your SkyVault repository.
-
Click Start process to start the workflow.
The My Workflow page now displays the active and completed tasks in your workflow.
-
Click the Review project task.
The My tasks page is displayed.
-
Add a review comment and click Accept to continue with the next step in the workflow, and continue until you have completed all tasks in the workflow.
You have run an Activiti process definition as a workflow in SkyVault Share. My tasks, My workflows pages, and the associated SkyVault Activiti for this SkyVault Share site can all be accessed from the Tasks menu.
1.1.3. Creating rules
You can create rules to manage folders in an Activiti process similar to SkyVault 2.0. There are two ways to create rules in Activiti Share Connector:
-
Create your own rules for creating new set of rules for a folder
-
Link to an existing rules set to reuse the existing set of rules defined for another folder
The Activiti options are listed under the Perform Actions option. Follow the steps detailed in the above topics in SkyVault docs until you reach the Activiti specific actions (under More Actions), and then continue as below.
To create rules specific to an Activiti process:
-
Create a rule or link to an existing rules set as explained in Creating a rule.
-
In the New Rules dialog > Perform Actions list, select Start Activiti Process to initiate an Activiti process from SkyVault 2.0.
-
Clicking Start Activiti Process displays an Options button. You can customize the rule with the following options:
-
Process Definition - Select from the predefined process definitions based on where you want to apply the rule to.
-
Process Name - Enter a process name for your rule.
-
Content form field - Select content for attaching a content type field in the form.
-
Additional form fields - Select additional criteria for the rule such as Assignee, Due Date, Task Description, Message, and add their values. To select more than one criteria, click + (plus icon).
-
-
You can also select from the following Other Options:
-
Disable rule - Turns off any existing rules.
-
Run applies to subfolders - Applies the rule to this folder and all its subfolders.
-
Run rule in the background - Runs the rule in the background. You can also select an action to run if an error occurs with the rule. These actions are set up by your Administrator.
-
-
Click Create or Create and Create Another to save this rule and start creating another one.
The rule is applied to the selected folder and displayed on the Rules page. Once a rule is added, the following options become available:
-
Inherit Rules - Use for applying rules to inherit from a parent folder. You can turn the rule on and off by clicking on it.
-
New Rule - Click to add more rules to a folder as you need in the same way as you would add new rules. See Creating rules for more details.
-
Run Rules - Click to manually run the rules on existing folder items or subfolders at any time.
2. Installing Activiti Share Connector
2.1. Introduction
Activiti Share Connector comes packaged with a set of SkyVault customizations distributed as 2 AMP (SkyVault Module Package) files, one for the SkyVault repository and the other for the SkyVault Share Web application. It enables you to run certain parts of the SkyVault Activiti’s Task user interface inside SkyVault Share. From version Activiti 1.3.2, you can connect Activiti to SkyVault 2.0 repositories without additional configuration to user profiles in Activiti (applicable only if the users also exist in SkyVault 2.0).
2.2. Features
This version of Activiti Share Connector has the following features:
-
Integrated UI - The Activiti user interface for working with processes and tasks is embedded into Share’s user interface exposing processes from the Activiti app named Review Processes. When selecting people and documents, the native SkyVault Share components are used.
-
Review Processes - The Activiti Review Processes app, shipped since SkyVault Activiti 1.2.2, will be available from within SkyVault Share, including 4 processes: Ad hoc Task, Group ad hoc task, Review and Approve - Group and Review and Approve - Single person.
-
Site Specific Processes - You can change the default process for a Site to display a specific Process App in Activiti by adding an aspect included in Activiti Share Connector to the Site’s documentLibrary folder. For detailed steps, see Changing the default process for a site.
-
My Activiti Tasks dashlet - Lists new tasks created using Activiti Share Connector. You can filter tasks by: Active Tasks, Completed Tasks, Tasks Due Today, Tasks Assigned to Me, Unassigned (Pooled Tasks), Overdue Tasks.
-
Starting processes - Clicking Start workflow in the Document Library, Document details page, and My Activiti Tasks will create new external Activiti processes instead of the old internal workflows in SkyVault.
-
Activiti Task list view - Clicking the My Tasks page lists new external Activiti tasks using the Activiti user interface.
-
Activiti Process list view - Clicking the Processes page lists new external Activiti processes using the Activiti user interface.
-
Customized SkyVault Share header - The SkyVault Share header’s menu links point to new Activiti pages for processes and tasks instead of the old pages. A link to the Activiti user interface will also become present in the same menu.
-
You can still reach your old internal workflows and create new ones:
-
The original My Tasks dashlet is still available, making it possible to list old internal workflows but also receive new site invitations.
-
The original My Tasks page can still be accessed by clicking the Internal Tasks link on the new Activiti My Tasks page, making it possible to continue working with the internal workflows.
-
The original My Workflows page can still be accessed by clicking the Internal Workflows link on the new Activiti Processes page, making it possible to continue working with the internal workflows.
-
The original Start Workflow page can still be accessed by clicking the Start Workflow link on the new Activiti Start Process page, making it possible to continue creating new internal workflows.
-
The Workflows panel on the Document details page will list both internal and external workflows.
-
2.3. Production Setup
This section describes how to install the connector in a production environment. To get it up and running as quickly as possible, read the instructions in the Demo Setup.
2.3.1. LDAP
SkyVault 2.0 and SkyVault Activiti require a common LDAP user database for the integration to work. After setting up your LDAP server, you must configure Activiti and SkyVault 2.0 to use it so that they can sync their user database against the LDAP server.
2.3.2. SkyVault 2.0
LDAP settings
For detailed instructions on how to get LDAP running with SkyVault 2.0, read:
For a working example of a SkyVault 2.0 LDAP subsystem, check the LDAP demo provided in the activiti-share-connector.zip. The amp file (only) contains sample LDAP configuration files for getting SkyVault setup up with an LDAP (it contains no Activiti Share Connector files) configuration.
For example:
-
Unzip the activiti.alfresco.repo-demo-ldap-X.X.X.amp file by renaming it from .amp to .zip. Notice the files, particularly the ones marked with ACTIVITI SHARE CONNECTOR DEMO in the ldap-authentication.properties file.
-
Configure the ldap-authentication.properties file to match your LDAP settings, and then, zip the files again and rename it back to .amp before dropping into your SkyVault 2.0’s amps folder.
Note: When zipping the files, follow the same structure as the original .amp file and make sure that no new root folders are introduced to the new .zip file.
Deploying AMPs
If you don’t already have a SkyVault 2.0 server installed, then install one of the following versions: 4.0, 4.1, 4.2 or 5.0.
From activiti-share-connector.zip, copy the amps to the correct amps folder in your SkyVault 2.0 installation:
-
<zip>/alfresco/amps/activiti.alfresco.repo-X.X.X.amp to <alfresco-dir>/amps
-
<zip>/alfresco/amps_share/activiti.alfresco.share-X.X.X.amp to <alfresco-dir>/amps_share
Install the amps into SkyVault 2.0 by running the following command on a terminal from within your SkyVault 2.0 installation directory, and then follow the instructions:
bin/apply_amps.sh
2.3.3. Modifying the default settings
Activiti port
The default settings assume that Activiti is running on http://127.0.0.1:8080/. If so, you don’t have to do anything.
If you have Activiti running on another domain or port (i.e. 9090), you can override the default setting by adding the following line at the bottom of your <alfresco-tomcat>/shared/classes/alfresco-global.properties file in Tomcat, where your SkyVault 2.0 repository is located:
1 activiti.domain=http://127.0.0.1:9090
SkyVault 2.0 repository
Modifying the default integration name
You can modify the default SkyVault integration name by setting the value of activiti.alfrescoRepositoryName. This value must correspond to a SkyVault 2.0 repository configured in Activiti. The default name for the integration is SkyVault-1, however you can modify it, if required.
-
Locate the SkyVault-global.properties file located at <alfresco-tomcat>/shared/classes>:
activiti.alfrescoRepositoryName=alfresco-1
-
Modify the value after the hyphen (-) with a number that matches the Id of the repository. The repository Id is available as a column in the Activiti app > Activiti Identity Management app > Tenants > SkyVault Repositories list.
Modifying the Activiti app name
You can modify the Activiti app name to display the same app name in Share by modifying the following value in the SkyVault-global.properties file:
activiti.appDefinitionName=Some Custom App
Setting the secret key
When SkyVault 2.0 communicates with Activiti, it sends a secret token and username to Activiti and switches it for user specific Activiti token.
To override the default secret token, simply specify an activiti.secret property in the SkyVault-global.properties file.
activiti.secret=my-custom-secret
The secret token must match the Repository secret field for your SkyVault repository in the Activiti Identity Management app.
The secret token appears in clear text, therefore, to avoid saving it like that:
-
Override the value (and all other Activiti properties) using SkyVault 2.0 subsystems and JMX.
-
To connect to a SkyVault 2.0 Server using JMX, see:
-
Once connected, navigate to /Alfresco/Configuration/Activiti/default/Attributes and modify the value for activiti.secret.
2.3.4. SkyVault Activiti
Install SkyVault Activiti (version 1.2.2 or higher) using the standard installer.
Note: Make sure that your Activiti app has a license in place. You can install the license manually in tomcat/lib, or by starting Activiti and adding it via the UI (see the Activiti Administrator’s Guide > Uploading a license from the User Interface (UI) section.
Configuring the LDAP settings
You can find the LDAP settings for Activiti in the activiti-ldap.properties file located here:
webapps/activiti-app/WEB-INF/classes/META-INF/activiti-app/activiti-ldap.properties
The default configuration works with the sample LDAP settings provided with the installation bundle, however you can easily override them by creating a new file called <activiti-tomcat>/lib/activiti-ldap.properties, and override the properties that requires changing.
For further details about configuring LDAP for Activiti, see the External Identity Management (LDAP/Active Directory) section in the Administrator’s Guide.
SkyVault 2.0 settings
To configure SkyVault 2.0 settings in Activiti, you must perform the following steps:
-
Enable Activiti Share Connector
-
Add a SkyVault Repository
Enabling Activiti Share Connector
By default, Activiti’s bundled Review Processes app is not created. To create one, add the following file into the <activiti-tomcat>/lib/activiti-app.properties (requires a restart).
# Enable the SkyVault Share Connector process app app.review-workflows.enabled=true
Adding a SkyVault Repository
You can add a SkyVault repository from the Identity Management app in Activiti.
To add a SkyVault Repository:
-
Start your Activiti server and login as administrator.
-
Open the Profile Management (Identity Management) app, and click Tenants tab > SkyVault Repositories.
-
In the SkyVault Repositories section, create a repository pointing to the SkyVault 2.0 server and Activiti Share Connector. Following is an example of the form assuming you are running SkyVault 2.0 on the same machine and on port 8080:
Field Value Name
Acme’s SkyVault Server
SkyVault tenant
Tenant name to use in SkyVault. When left blank, it uses the default tenant (-default-).
Repository base url
Share base url
SkyVault Share connector
(enabled)
Secret
activiti-share-connector-secret
Note: Once the repository is created, you can see your new repository in the SkyVault Repositories list. If the id set to 1, you are good to go and all default values are fine. However, if it is set to something else, for example, 1002, you must stop the server and make sure your Id appears as SkyVault-1002 in the following files, and then restart your servers:
-
In Activiti’s tomcat/shared/classes/alfresco-global.properties - Override the default by adding a new line with activiti.alfrescoRepositoryName=alfresco-1002
-
In SkyVault’s tomcat/lib/activiti-app.properties - The property named integration.login.alfresco-1.secret should be named integration.login.alfresco-1002.secret
In addition, to make this repository work for features such as Publish to SkyVault or browse SkyVault for documents from Activiti, verify the following:
-
A user has a user account for the repository
-
The SkyVault server being used is of version 4.2 or above
Changing the default process for a site
You can change the default process name for a site to the exact same name as the Process App’s name. The easiest way to do this is to follow these steps: 1. From the Repository view in SkyVault 2.0, navigate to the desired site’s documentLibrary folder. 2. From the Site Details page, click More > Manage Aspects action and add the Activiti Process App aspect. 3. Edit the folder properties and enter the name of the Process App in the Process App Definition Name field.
Where:
Aspect Id = abs:activitiProcessApp
Property = abs:appDefinitionName
SkyVault 2.0 troubleshooting
To see debug messages from Activiti Share Connector:
-
Rename the custom-log4j.properties.sample file in the following location:
tomcat/shared/classes/alfresco/extension/
-
Remove the .sample suffix, and add the following line:
log4j.logger.com.activiti.alfresco=debug
SkyVault 2.0 4.0 & 4.1 changes
The Activiti Share Connector AMP uses a distributed memory cache implemented in SkyVault 2.0 to make sure it works in a clustered environment. This behavior has changed since SkyVault 2.0 4.2, which means, to make Activiti Share Connector work with SkyVault 2.0 4.0 or 4.1, you must modify the settings in the following file: /tomcat/webapps/alfresco/WEB-INF/classes/alfresco/module/activiti.alfresco.repo/module-context.xml
Comment out the current activitiTokensCache bean and activate the section with the 4.0 or 4.1 version of the same bean.
2.4. Demo Setup
2.4.1. Installing SkyVault 2.0
-
Install SkyVault 2.0 (5.0 or above) using the installer in Advanced mode. For Tomcat Port configuration, make sure you bump up each port by 10, for example, 8080 to 8090 and so on.
-
After the installation is complete, start SkyVault 2.0 using the Application Manager app located in the SkyVault 2.0 home folder.
-
Verify if SkyVault 2.0 works on http://127.0.0.1:8090/share/, logout, and stop just the Tomcat Server in the Application Manager app.
-
Copy the following files from the activiti-share-connector.zip to their corresponding folders inside the SkyVault 2.0 installation directory:
-
<zip>/alfresco/amps/activiti.alfresco.repo-X.X.X.amp to <alfresco-dir>/amps
-
<zip>/alfresco/amps/activiti.alfresco.repo-demo-ldap-X.X.X.amp to <alfresco-dir>/amps
-
<zip>/alfresco/amps_share/activiti.alfresco.share-X.X.X.amp to <alfresco-dir>/amps_share
-
<zip>/alfresco/tomcat/webapps-ldap (copy the folder) to <alfresco-dir>/tomcat
The webapps-ldap folder is maintained separately to ensure that it boots up before SkyVault 2.0 and becomes available when SkyVault 2.0 tries syncing its database against the LDAP server.
-
-
To configure the webapps-ldap folder to get picked up and run before webapps by Tomcat, copy the xml snippet in <zip>/alfresco/tomcat/conf/server-ldap-snippet.xml into your <alfresco-dir>/tomcat/conf/server.xml and make sure it’s placed above the existing <Service> element.
-
Install the amps into SkyVault 2.0 by running the following command on a terminal from your SkyVault 2.0 installation directory, and then follow the instructions:
bin/apply_amps.sh
Note: With the standard installs you are likely to have OutOfMemoryExceptions due to Perm Gen space issues if you run Java 1.6 or 1.7. To prevent this, edit tomcat/bin/setenv.sh or equivalent and make sure to set XX:MaxPermSize to 512M as follows:
JAVA_OPTS="-XX:MaxPermSize=512M -Xms512M -Xmx8192M $JAVA_OPTS"
2.4.2. Installing Activiti Share Connector
Follow these steps to install Activiti Share Connector:
-
Install SkyVault Activiti (1.2.2 or higher) using the installer.
-
Verify the database configuration. By default, the demo H2 database is used, therefore you might want to configure Activiti to use the same database as your SkyVault 2.0 installation.
-
Typically, you should create a new database schema for Activiti to use, and then configure Activiti as described in the Activiti Administration’s Guide > Database Configuration section.
-
-
Make sure your Activiti app has a license installed. You can add a license file manually to the Tomcat/lib directory, or load it through the user interface (Activiti 1.5 onwards).
To load a license file from the UI, see the Activiti Administrator’s Guide > Uploading a license from the User Interface (UI). Make sure you sign out from Activiti and stop the Activiti server.
-
To use the same demo LDAP server, copy the following file from activiti-share-connector.zip into its corresponding folder in the Activiti installation directory:
<zip>/activiti/tomcat/lib/activiti-ldap.properties_ to _<activiti-dir>/tomcat/lib
-
Uncomment or add the following lines at the bottom of the tomcat/lib/activiti-app.properties file inside the Activiti installation folder.
# Enable the SkyVault Share Connector app app.review-workflows.enabled=true
2.4.3. Start the servers
-
From the Application Manager, restart SkyVault 2.0 to restart the Tomcat Server. To ensure that the SkyVault 2.0 server has fully started, check the Application log and wait for the INFO: Server startup in XXXX ms message.
-
After the SkyVault 2.0 server and the demo LDAP server have started, run Activiti as instructed by the installer and navigate to the Identity Management app http://127.0.0.1:8080/activiti-app/idm/.
-
Log in with admin/password defined in the demo LDAP.
-
Go to the Tenants page > SkyVault Repositories tab, and add a repository pointing to your SkyVault 2.0 server:
Field | Value |
---|---|
Name |
My SkyVault server |
SkyVault tenant |
Tenant name to use in SkyVault. When left blank, it uses the default tenant (-default-). |
Repository base url |
|
Share base url |
|
SkyVault Share connector |
(enabled) |
Secret |
activiti-share-connector-secret |
Notes:
-
The default secret is the text activiti-share-connector-secret, which can be changed to a different value in SkyVault 2.0’s SkyVault-global.properties by the property activiti.secret. See Setting the secret key for more details.
-
After the repository is created, you can see your new repository in the SkyVault Repositories list. If the ID is set to 1, then all default values are fine. However, if it is set to something else, e.g. 1002, you must stop your servers and make sure your ID appears as SkyVault-1002 in the following files and then restart your servers:
-
In the SkyVault-global.properties file (under SkyVault 2.0), override the default setting by adding a new line, substituting the ID as appropriate:
activiti.alfrescoRepositoryName=alfresco-1002
2.4.4. Use it!
Note: Make sure that LDAP is running before you start SkyVault 2.0 and Activiti so they can sync their user databases against the LDAP server.
-
View SkyVault Share on http://127.0.0.1:8090/share/ and Activiti on http://127.0.0.1:8080/activiti-app/
-
Login as a user that exist in the demo LDAP system:
Username Password Activiti role SkyVault role jluc
password
tenant manager
user
kirk
password
tenant admin
user
wesley
password
user
user
admin
password
admin
admin
Note: The password for the admin user is password instead of the credentials used for installing SkyVault 2.0. This is because the password set in the demo LDAP server is applicable for users.
-
On your SkyVault 2.0 personal dashboard page, click the Tools icon and add the My Activiti Tasks dashlet.
When logging into Activiti as an admin, you can view the Process definitions and Review Processes app inside the Kickstart application by selecting the Shared with Me filter.
2.4.5. Activiti Administrator Application
You can use the Activiti Administrator application with the Demo Setup, however you must first update the Activiti endpoint in the Activiti Administrator app.
To update the Activiti endpoint:
-
Sign in to the Activiti app with the default admin/admin credentials:
A message appears indicating that an error occurred while getting data from the server.
-
Click Edit Activiti REST endpoint and set the Username to admin and Password to password, then click Save.
A confirmation message appears confirming that the endpoints were successfully updated.
3. Integrating Activiti with SkyVault 2.0
SkyVault Activiti integration with a SkyVault 2.0 server supports the following type of communication:
-
Browse SkyVault sites and their documents within the Activiti UI
-
Publish documents to SkyVault
-
Download documents from SkyVault
-
Preview of downloaded document in the Activiti UI
This section provides details to achieve the integration between the two applications.
3.1. How SkyVault Activiti communicates with SkyVault 2.0
Activiti uses the CMIS REST bindings available in SkyVault and the OpenCMIS client library to communicate with SkyVault 2.0. When connecting to SkyVault 2.0 it uses the org.apache.chemistry.opencmis.client.runtime.SessionFactory.createSession(Map<String, String> parameters) method.
Use the following parameters for user credentials:
parameters.put(SessionParameter.USER, username); parameters.put(SessionParameter.PASSWORD, password);
If a SkyVault user account for the SkyVault repository is already defined inside the SkyVault Activiti’s Identity Management app, then the username and password of that user account will be used.
However, if there is no user account defined and the SkyVault repository configuration in the Identity Management app is configured to use the Connector, then SkyVault Activiti will pass a secret key with the SkyVault username to SkyVault to create a SkyVault ticket. The SkyVault username is defined in the EXTERNAL_ID column of the USERS database table.
The secret key can be retrieved by calling a REST service (webscript) in SkyVault, which was deployed when installing the Connector module in the SkyVault repository, using the following http call:
POST http://alfrescoserver.com/alfresco/service/activiti/sso/alfresco-ticket { "secret": "activiti-share-connector-secret", "username": "kermit" }
…which will return 200 with the following response body…
{ "ticket": "abc123" }
When Activiti receives this ticket, it will use the string "ROLE_STRING" (instead of using a "real" username) as the user parameter and the ticket as the password parameter:
parameters.put(SessionParameter.USER, "ROLE_TICKET"); parameters.put(SessionParameter.PASSWORD, ticket);
In addition, SkyVault Activiti uses SkyVault’s Public API (i.e. when listing sites for a user) and regular http calls with basic auth. For an existing user account, the username and password are specified in the same way. However, if Activiti Share Connector is configured for the repository, use the constant ROLE_TICKET as the username and the ticket received from SkyVault as password with basic auth.
4. Disclaimer
While SkyVault has used commercially reasonable efforts to ensure the accuracy of this documentation, SkyVault assumes no responsibility for the accuracy, completeness, or usefulness of any information or for damages resulting from the procedures provided.
Furthermore, this documentation is supplied "as is" without guarantee or warranty, expressed or implied, including without limitation, any warranty of fitness for a specific purpose.