06-21-2012 03:34 AM
06-21-2012 01:24 PM
07-03-2012 04:26 AM
<?xml version="1.0" encoding="UTF-8"?>
<definitions xmlns="http://www.omg.org/spec/BPMN/20100524/MODEL" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:activiti="http://activiti.org/bpmn" xmlns:bpmndi="http://www.omg.org/spec/BPMN/20100524/DI" xmlns:omgdc="http://www.omg.org/spec/DD/20100524/DC" xmlns:omgdi="http://www.omg.org/spec/DD/20100524/DI" typeLanguage="http://www.w3.org/2001/XMLSchema" expressionLanguage="http://www.w3.org/1999/XPath" targetNamespace="http://www.activiti.org/test">
  <process id="process1" name="process1">
    <startEvent id="startevent1" name="Start" activiti:formKey="scwf:submitHelloWorldTask"></startEvent>
    <userTask id="alfrescoUsertask1" name="Alfresco User Task" activiti:assignee="${initiator.properties.userName}" activiti:formKey="wf:activitiReviewTask">
      <extensionElements>
        <activiti:taskListener event="complete"
class="org.alfresco.repo.workflow.activiti.tasklistener.ScriptTaskListener">
          <activiti:field name="script">
            <activiti:string>execution.setVariable('wf_reviewOutcome',
task.getVariable('wf_reviewOutcome'));</activiti:string>
          </activiti:field>
        </activiti:taskListener>
      </extensionElements>
    </userTask>
    <sequenceFlow id="flow1" name="" sourceRef="startevent1" targetRef="alfrescoUsertask1">
          <extensionElements>
        <activiti:executionListener event="start"
class="org.alfresco.repo.workflow.activiti.listener.ScriptExecutionListener">
          <activiti:field name="script">
            <activiti:string>logger.log("Hello, " + scwf_helloName +
"!");</activiti:string>
          </activiti:field>
        </activiti:executionListener>
      </extensionElements>
    </sequenceFlow>
    <serviceTask id="alfrescoScripttask1" name="Alfresco Script Task"
activiti:class="org.alfresco.repo.workflow.activiti.script.AlfrescoScriptDelegate">
      <extensionElements>
        <activiti:field name="script">
          <activiti:string>logger.log("The outcome of the review task is: " +
wf_reviewOutcome);</activiti:string>
        </activiti:field>
      </extensionElements>
    </serviceTask>
    <sequenceFlow id="flow2" name="" sourceRef="alfrescoUsertask1" targetRef="alfrescoScripttask1"></sequenceFlow>
    <endEvent id="endevent1" name="End"></endEvent>
    <sequenceFlow id="flow3" name="" sourceRef="alfrescoScripttask1" targetRef="endevent1"></sequenceFlow>
  </process><?xml version="1.0" encoding="UTF-8"?>
<model name="scwf:scWorkflowModel" xmlns="http://www.alfresco.org/model/dictionary/1.0">
   <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>
   <namespaces>
      <namespace uri="scwf.workflow.model" prefix="scwf"/>
   </namespaces>
   <types>
     <type name="scwf:submitHelloWorldTask">
       <parent>bpm:startTask</parent>
       <properties>
      <property name="scwf:helloName">
         <type>d:text</type>
         <mandatory>true</mandatory>
         <multiple>false</multiple>
      </property>
       </properties>
     </type>
   </types>
</model><?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="workflowDefinitions">
        <list>   
           <props>
                    <prop key="engineId">activiti</prop>
                    <prop key="location">alfresco/extension/workflows/HelloWorldUI.bpmn20.xml</prop>
                    <prop key="mimetype">text/xml</prop>
                    <prop key="redeploy">false</prop>            
                </props>
            </list>
          </property>
   
     <property name="models">         
          <list>        
          <value>alfresco/extension/model/scWorkflowModel.xml</value>
           </list>      
         </property>
     <property name="labels">
            <list>
                <value>alfresco.extension.messages.scWorkflow</value>
            </list>
        </property>
  
        </bean>
        
 
</beans>
    <config evaluator="node-type" condition="scwf:submitHelloWorldTask"
replace="true">
        <property-sheet>
            <show-property name="scwf:helloName" />
        </property-sheet>
    </config>07-03-2012 08:10 AM
 . I have a task of filtering workflows per role i.e disabling users who belong to a role to start or even see selected workflows. I am not sure if I make sense. What I need is for some user(s) not to be able to start certain workflows if possible those workflows shouldn't even be in their list of workflows.
 . I have a task of filtering workflows per role i.e disabling users who belong to a role to start or even see selected workflows. I am not sure if I make sense. What I need is for some user(s) not to be able to start certain workflows if possible those workflows shouldn't even be in their list of workflows.07-03-2012 09:44 AM
 
					
				
		
02-19-2016 06:14 PM
 
					
				
				
			
		
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.