cancel
Showing results for 
Search instead for 
Did you mean: 

Creating a site within activiti workflow

tm
Champ in-the-making
Champ in-the-making
Hi,

is there any way to access a surf-root-object from within a (script)user-task in an activiti workflow? I'd like create a site, which works well, but I need to create the preset too. Using a share-webscript works like expected which is expectable, but now I'm "stuck" with the WF and as far as I can see things there is no way to access the variable "sitedata".
A possible workaround would be to call my share-webscript from the WF as this would also have the benefit of reducing code-duplication (1 createCertSite-code to rule them all) but I haven't found out how to do that too..

Apart from this I have some troubles getting the correct identifier for a "description-id" in my share-config-custom. What is the expected entry in the .properties file for a description? Something along "prefix_workflowModelName.XXXX"? Messed around but couldn't get it displayed in the WF.

<config ..>
  <forms>
    ..
    <field id="testName" set="items" description-id="testNameDesc" />


Best regards
2 REPLIES 2

muralidharand
Star Contributor
Star Contributor
Hi,
Where you've defined the sitedata variable?
If you want to add custom variables into the activitiworkflow and reading it later,please refer the below link.

http://mralfresco.blogspot.in/2013/02/adding-custom-variables-in-actitivi.html

tm
Champ in-the-making
Champ in-the-making
I haven't defined the variable but rather would like it to be in scope. Which isn't possible I guess but on the other hand I have not found out how to create a site-preset within a WF.. or if there is a way to call my share-webscript and "let things happen the easy way".
Variable description: http://docs.alfresco.com/4.2/topic/com.alfresco.enterprise.doc/references/APISurf-rootscoped.html