Workflow Name: amsetf2createforum#
Constituent Services: AuthenticationService, RepositoryService, InitCreateForumWS, DateTimeWS#
Technical Notes#
Platform: GlassFishESB V2.1, NetBeans IDE 6.5.1 (including BPEL Designer, implementing WS-BPEL 2.0)
Java: 1.6.0_12; Java HotSpot(TM) Client VM 11.0-b15
System: Windows XP version 5.1 running on x86; Cp1252; en_GB (nb).
Alfresco Labs 3 Final running on remote server, 64-bit Java 1.6.0_13, Tomcat 6 on Red Hat Enterprise Linux 5.
Workflow description#
Creates a forum in a forum space.
Input/Output#
Code snippet f2.1. InitCreateForumWS SOAP request.
<soapenv:Envelope xsi:schemaLocation="http://schemas.xmlsoap.org/soap/envelope/ http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:init="http://j2ee.netbeans.org/wsdl/amsetf2createforum/InitCreateForumWS" xmlns:rep="http://j2ee.netbeans.org/wsdl/amset5createcontent1/InitCreateContentWS/repodata" xmlns:ns="http://www.alfresco.org/ws/cml/1.0" xmlns:ns1="http://www.alfresco.org/ws/model/content/1.0">
<soapenv:Body>
<init:InitCreateForumWSOperation>
<alfrescoAdminUsername>admin</alfrescoAdminUsername>
<alfrescoAdminPassword>adminPassword</alfrescoAdminPassword>
<part1>
<rep:update>
<rep:statements>
<ns:create>
<ns:id>CreateForum</ns:id>
<ns:parent>
<ns1:store>
<ns1:scheme>workspace</ns1:scheme>
<ns1:address>SpacesStore</ns1:address>
</ns1:store>
<ns1:uuid>a9a512ee-e24a-4b17-909c-7ef6569302dc</ns1:uuid>
<ns1:path></ns1:path>
<ns1:associationType>{http://www.alfresco.org/model/content/1.0}contains</ns1:associationType>
<ns1:childName>{http://www.alfresco.org/model/content/1.0}contains</ns1:childName>
</ns:parent>
<ns:parent_id></ns:parent_id>
<ns1:associationType></ns1:associationType>
<ns1:childName></ns1:childName>
<ns:type>{http://www.alfresco.org/model/forum/1.0}forum</ns:type>
<ns:property>
<ns1:name>{http://www.alfresco.org/model/content/1.0}name</ns1:name>
<ns1:isMultiValue>false</ns1:isMultiValue>
<ns1:value>NewDiscussionForum160909</ns1:value>
<ns1:values></ns1:values>
</ns:property>
</ns:create>
</rep:statements>
</rep:update>
</part1>
</init:InitCreateForumWSOperation>
</soapenv:Body>
</soapenv:Envelope>
Code snippet f2.2. RepositoryService.update() SOAP request.
<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
<SOAP-ENV:Header>
<Security xmlns="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd">
<wsu:Timestamp xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">
<wsu:Created>2009-09-16T07:55:05.32+00:00</wsu:Created>
<wsu:Expires>2009-09-16T07:59:05.00+00:00</wsu:Expires>
</wsu:Timestamp>
<UsernameToken>
<Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText">TICKET_482c424d715d61e2af4520e951f0a2049075969b</Password>
<Username>admin</Username>
</UsernameToken>
</Security>
</SOAP-ENV:Header>
<SOAP-ENV:Body>
<update
xmlns="http://www.alfresco.org/ws/service/repository/1.0"
xmlns:init="http://j2ee.netbeans.org/wsdl/amsetf2createforum/InitCreateForumWS"
xmlns:msgns="http://j2ee.netbeans.org/wsdl/amsetf2createforum/InitCreateForumWS"
xmlns:ns="http://www.alfresco.org/ws/cml/1.0"
xmlns:ns0="http://www.alfresco.org/ws/service/repository/1.0"
xmlns:ns1="http://www.alfresco.org/ws/model/content/1.0" xmlns:rep="http://j2ee.netbeans.org/wsdl/amset5createcontent1/InitCreateContentWS/repodata">
<rep:statements>
<ns:create>
<ns:id>CreateForum</ns:id>
<ns:parent>
<ns1:store>
<ns1:scheme>workspace</ns1:scheme>
<ns1:address>SpacesStore</ns1:address>
</ns1:store>
<ns1:uuid>a9a512ee-e24a-4b17-909c-7ef6569302dc</ns1:uuid>
<ns1:path/>
<ns1:associationType>{http://www.alfresco.org/model/content/1.0}contains</ns1:associationType>
<ns1:childName>{http://www.alfresco.org/model/content/1.0}contains</ns1:childName>
</ns:parent>
<ns:parent_id/>
<ns1:associationType/>
<ns1:childName/>
<ns:type>{http://www.alfresco.org/model/forum/1.0}forum</ns:type>
<ns:property>
<ns1:name>{http://www.alfresco.org/model/content/1.0}name</ns1:name>
<ns1:isMultiValue>false</ns1:isMultiValue>
<ns1:value>NewDiscussionForum160909</ns1:value>
<ns1:values/>
</ns:property>
</ns:create>
</rep:statements>
</update>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
Code snippet f2.3. RepositoryService.update() SOAP response.
<?xml version="1.0" encoding="UTF-8"?>
<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<soapenv:Body>
<updateResponse xmlns="http://www.alfresco.org/ws/service/repository/1.0">
<updateReturn>
<statement>create</statement>
<updateCount xsi:nil="true"/>
<sourceId>CreateForum</sourceId>
<source xsi:nil="true"/>
<destination>
<ns1:store xmlns:ns1="http://www.alfresco.org/ws/model/content/1.0">
<ns1:scheme>workspace</ns1:scheme>
<ns1:address>SpacesStore</ns1:address>
</ns1:store>
<ns2:uuid xmlns:ns2="http://www.alfresco.org/ws/model/content/1.0">b254309c-3e8b-4ee3-bc04-7f80db8dcb29</ns2:uuid>
<ns3:path xmlns:ns3="http://www.alfresco.org/ws/model/content/1.0">/app:company_home/cm:Waffle_x0020_Bus_x0020_Workflows/cm:What_x0020_is_x0020_the_x0020_Protein_x0020_Folding_x0020_Problem/cm:contains/cm:contains</ns3:path>
</destination>
</updateReturn>
</updateResponse>
</soapenv:Body>
</soapenv:Envelope>
The new link and forum space NewDiscussionForum160909 are shown below.
Figure f2.1. The new forum link, NewDiscussionForum160909.
![]() |
Figure f2.2. The new forum folder, NewDiscussionForum160909.
![]() |
Add new attachment
Only authorized users are allowed to upload new attachments.
List of attachments
| Kind | Attachment Name | Size | Version | Date Modified | Author | Change note |
|---|---|---|---|---|---|---|
png |
newforum_a.png | 10.1 kB | 1 | 16-Sep-2009 08:05 | clayton | |
png |
newforum_b.png | 8.4 kB | 1 | 16-Sep-2009 08:06 | clayton |
G’day (anonymous guest)
My Prefs

