There are four broad steps involved with creating your own connector:
More information and resources will be available shortly on how to create a connector image.
A connector definition is required to link your connector to a service task task within a process. To create a connector definition, sign into the Alfresco Modeling Application with a user that has the ACTIVITI_MODELER
role.
In the Connectors section of the Modeling Application:
Create a new connector definition and give it a name and optional description.
Create a new action and give it a name and optional description.
Note: The combination of connector name and action name will appear as the implementation
value of a service task in the process definition XML.
Create the input and output parameter(s) for your connector. Input parameters are those sent from the process to a connector and output parameters are those received back.
Repeat Steps 2 and 3 for as many actions as your connector can execute.
Save your connector definition. It will now be available to attach to a service task in a process definition.
To use your connector within a process, sign into the Alfresco Modeling Application with a user that has permission to create projects. The user will require the APS_MODELER role.
In the Processes section of the Modeling Application:
Create a service task and use the implementation
value dropdown to select your connector definition followed by the action that the service task will use.
Note: if you view the XML editor you will see that the value of the implementation
property is <connector-name>.<action-name>
for the associated service task.
Assign the input and output parameters for the connector to process variables within the process definition. If the names are identical this matching is done automatically.
Note: the mappings between process variables and connector actions can be viewed in the <application-name>-extensions.json
file located in the processes folder of your project.
Complete and save your process.
A connector needs to be deployed with its associated released project using the Alfresco Administrator Application to deploy. The location of the connector image and any connector variables are set during deployment.
© 2023 Alfresco Software, Inc. All Rights Reserved.
By using this site, you are agreeing to allow us to collect and use cookies as outlined in Alfresco’s Cookie Statement and Terms of Use (and you have a legitimate interest in Alfresco and our products, authorizing us to contact you in such methods). If you are not ok with these terms, please do not use this website.