Creating a site within activiti workflow

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-26-2013 07:05 PM
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.
Best regards
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
Labels:
- Labels:
-
Archive
2 REPLIES 2
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-26-2013 11:34 PM
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
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

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-27-2013 04:54 AM
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
Variable description: http://docs.alfresco.com/4.2/topic/com.alfresco.enterprise.doc/references/APISurf-rootscoped.html
