Hi there.My name is Erik.Right now I have a simple workflow (taken from Alfresco Developer Guide, pag 296, Step-by-Step: Grabbing the Hello World Argument from the User), I have the following files:Workflow definition (processdefinition.xml):<?xml version="1.0" encoding="UTF-8"?>
<process-definition xmlns="urn:jbpm.org:jpdl-3.1" name="scwf:helloWorldUI">
<start-state name="start">
<task name="scwf:submitHelloWorldTask" />
<transition name="" to="hello"></transition>
</start-state>
<node name="hello">
<transition name="" to="end1">
<action class="org.alfresco.repo.workflow.jbpm.AlfrescoJavaScript">
<script>
<variable name="scwf_helloName" access="read"/>
<expression>
logger.log("Hello, " + scwf_helloName + "!");
</expression>
</script>
</action>
</transition>
</node>
<end-state name="end1"></end-state>
</process-definition>Custom Model for the WorkFlow(scWorkflowModel.xml):<?xml version="1.0" encoding="UTF-8"?>
<!– Definition of new Model –>
<model name="scwf:workflowmodel" xmlns="http://www.alfresco.org/model/dictionary/1.0">
<!– Optional meta-data about the model –>
<description>Someco Workflow Model</description>
<author>Optaros</author>
<version>1.0</version>
<!– Imports are required to allow references to definitions in other models –>
<imports>
<import uri="http://www.alfresco.org/model/dictionary/1.0" prefix="d" />
<import uri="http://www.alfresco.org/model/bpm/1.0" prefix="bpm" />
</imports>
<!– Introduction of new namespaces defined by this model –>
<namespaces>
<namespace uri=" http://www.someco.com/model/workflow/1.0" prefix="scwf" />
</namespaces>
<types>
<type name="scwf:submitHelloWorldTask">
<parent>bpm:startTask</parent>
<properties>
<property name="scwf:helloName">
<type>d:text</type>
<mandatory>false</mandatory>
<multiple>true</multiple>
</property>
</properties>
</type>
</types>
</model>
Workflow properties file (config/extension/scWorkflow.properties):#
# Hello World UI Workflow
#
# scWorkflowModel related strings
scwf_workflowmodel.type.scwf_submitHelloWorldTask.title=Start Hello World UI Workflow Erik
scwf_workflowmodel.type.scwf_submitHelloWorldTask.description=Submit a workflow that says hello in the log
scwf_workflowmodel.property.scwf_helloName.title=Name
scwf_workflowmodel.property.scwf_helloName.description=Say hello to this person
# processdefinition related strings
scwf_helloWorldUI.workflow.title=Hello World UI
scwf_helloWorldUI.workflow.description=A simple hello wo
Registering spring beans to alfresco context (someco-model-context.xml):<?xml version='1.0' encoding='UTF-8'?>
<!DOCTYPE beans PUBLIC '-//SPRING//DTD BEAN//EN' 'http://www.springframework.org/dtd/spring-beans.dtd'>
<beans>
<!– Registration of new models –>
<bean id="someco.dictionaryBootstrap" parent="dictionaryModelBootstrap" depends-on="dictionaryBootstrap">
<property name="models">
<list>
<value>alfresco/extension/model/scModel.xml</value>
<value>alfresco/extension/model/scWorkflowModel.xml</value>
</list>
</property>
</bean>
<bean id="extension.workflowBootstrap" parent="workflowDeployer">
<property name="labels">
<list>
<value>alfresco.extension.scWorkflow</value>
</list>
</property>
</bean>
</beans>
The workflow appear, but What I need, well according to the example is to pass the value in the start step of the Workflow, but I can not get this working, it just does not appear in the UI, I'v trying to google it but I can not find an answer.It would be great if anyone could tell me What I'm missing or if I'm doing something wrong.Thanks a lot!