Index of modules
Module workflow
Name: workflow
Title: Gestor de fluxos de treball
Namespace: http://workflow.matrix.org/
Service: WorkflowManagerService
Port: WorkflowManagerPort
Java package: org.matrix.workflow
Version: 2.1
Status: REVISION
Authors: Ricard Real
WSDL: workflow.wsdl
Imports:
prefix namespace
xs http://www.w3.org/2001/XMLSchema
mime http://www.w3.org/2005/05/xmlmime
mx http://base.matrix.org/

[Types] [Operations]

Types

Struct Variable
Name: Variable
QName: workflow:Variable
Java class name: org.matrix.workflow.Variable
Properties:
name xml type occurs nillable read only references
name xs:string 0..1 false false
value xs:string 0..1 false false
type xs:string 1 false false
Related operations:
Struct VariableFilter
Name: VariableFilter
QName: workflow:VariableFilter
Java class name: org.matrix.workflow.VariableFilter
Properties:
name xml type occurs nillable read only references
name xs:string 0..1 false false
value xs:string 0..1 false false
extendedVisibility xs:boolean 0..1 false false
Struct InstanceFilter
Name: InstanceFilter
QName: workflow:InstanceFilter
Java class name: org.matrix.workflow.InstanceFilter
Properties:
name xml type occurs nillable read only references
variable workflow:VariableFilter 0..N true false
startDate mx:date 0..1 false false
endDate mx:date 0..1 false false
firstResult xs:int 1 false false
maxResults xs:int 1 false false
Related operations:
Struct InstanceView
Name: InstanceView
QName: workflow:InstanceView
Java class name: org.matrix.workflow.InstanceView
Properties:
name xml type occurs nillable read only references
instanceId xs:string 0..1 false false
name xs:string 0..1 false false
version xs:string 0..1 false false
description xs:string 0..1 false false
state xs:string 0..1 false false
activeNodes xs:string 0..1 false false
startDateTime mx:dateTime 0..1 false false
simulation xs:boolean 1 false false
destroyButtonEnabled xs:boolean 1 false false
Related operations:
Struct InstanceEvent
Name: InstanceEvent
QName: workflow:InstanceEvent
Java class name: org.matrix.workflow.InstanceEvent
Properties:
name xml type occurs nillable read only references
instanceId xs:string 1 false false
eventNum xs:int 1 false false
dateTime mx:dateTime 1 false false
actorName xs:string 0..1 false false
variableChange workflow:VariableChange 0..N true false
Related operations:
Struct VariableChange
Name: VariableChange
QName: workflow:VariableChange
Java class name: org.matrix.workflow.VariableChange
Properties:
name xml type occurs nillable read only references
name xs:string 1 false false
type xs:string 1 false false
oldValue xs:string 0..1 false false
newValue xs:string 0..1 false false

Operations

Operation getVariables
Name: getVariables
Signature: getVariables (instanceId {xs:string}) => variable {workflow:Variable}*
Java signature: List<org.matrix.workflow.Variable> getVariables(String instanceId)
Parameters:
name xml type occurs nillable read only references
instanceId xs:string 1 false false
Response:
name xml type occurs nillable read only references
variable workflow:Variable 0..N true false
Sample input message:
<?xml version="1.0" ?>
<S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/">
  <S:Body>
    <ns2:getVariables xmlns:ns2="http://workflow.matrix.org/">
      <instanceId>{xs:string}</instanceId>
    </ns2:getVariables>
  </S:Body>
</S:Envelope>
Sample output message:
<?xml version="1.0" ?>
<S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/">
  <S:Body>
    <ns2:getVariablesResponse xmlns:ns2="http://workflow.matrix.org/">
      <variable>
        <name>{xs:string}</name>
        <value>{xs:string}</value>
        <type>{xs:string}</type>
      </variable>
    </ns2:getVariablesResponse>
  </S:Body>
</S:Envelope>
Operation setVariables
Name: setVariables
Signature: setVariables (instanceId {xs:string}, variable {workflow:Variable}*) => variableCount {xs:int}
Java signature: int setVariables(String instanceId, List<org.matrix.workflow.Variable> variable)
Parameters:
name xml type occurs nillable read only references
instanceId xs:string 1 false false
variable workflow:Variable 0..N true false
Response:
name xml type occurs nillable read only references
variableCount xs:int 1 false false
Sample input message:
<?xml version="1.0" ?>
<S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/">
  <S:Body>
    <ns2:setVariables xmlns:ns2="http://workflow.matrix.org/">
      <instanceId>{xs:string}</instanceId>
      <variable>
        <name>{xs:string}</name>
        <value>{xs:string}</value>
        <type>{xs:string}</type>
      </variable>
    </ns2:setVariables>
  </S:Body>
</S:Envelope>
Sample output message:
<?xml version="1.0" ?>
<S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/">
  <S:Body>
    <ns2:setVariablesResponse xmlns:ns2="http://workflow.matrix.org/">
      <variableCount>{xs:int}</variableCount>
    </ns2:setVariablesResponse>
  </S:Body>
</S:Envelope>
Operation doStep
Name: doStep
Signature: doStep (instanceId {xs:string}) => step {xs:boolean}
Java signature: boolean doStep(String instanceId)
Parameters:
name xml type occurs nillable read only references
instanceId xs:string 1 false false
Response:
name xml type occurs nillable read only references
step xs:boolean 1 false false
Sample input message:
<?xml version="1.0" ?>
<S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/">
  <S:Body>
    <ns2:doStep xmlns:ns2="http://workflow.matrix.org/">
      <instanceId>{xs:string}</instanceId>
    </ns2:doStep>
  </S:Body>
</S:Envelope>
Sample output message:
<?xml version="1.0" ?>
<S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/">
  <S:Body>
    <ns2:doStepResponse xmlns:ns2="http://workflow.matrix.org/">
      <step>{xs:boolean}</step>
    </ns2:doStepResponse>
  </S:Body>
</S:Envelope>
Operation undoStep
Name: undoStep
Signature: undoStep (instanceId {xs:string}) => step {xs:boolean}
Java signature: boolean undoStep(String instanceId)
Parameters:
name xml type occurs nillable read only references
instanceId xs:string 1 false false
Response:
name xml type occurs nillable read only references
step xs:boolean 1 false false
Sample input message:
<?xml version="1.0" ?>
<S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/">
  <S:Body>
    <ns2:undoStep xmlns:ns2="http://workflow.matrix.org/">
      <instanceId>{xs:string}</instanceId>
    </ns2:undoStep>
  </S:Body>
</S:Envelope>
Sample output message:
<?xml version="1.0" ?>
<S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/">
  <S:Body>
    <ns2:undoStepResponse xmlns:ns2="http://workflow.matrix.org/">
      <step>{xs:boolean}</step>
    </ns2:undoStepResponse>
  </S:Body>
</S:Envelope>
Operation destroyInstance
Name: destroyInstance
Signature: destroyInstance (instanceId {xs:string}) => destroyed {xs:boolean}
Java signature: boolean destroyInstance(String instanceId)
Parameters:
name xml type occurs nillable read only references
instanceId xs:string 1 false false
Response:
name xml type occurs nillable read only references
destroyed xs:boolean 1 false false
Sample input message:
<?xml version="1.0" ?>
<S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/">
  <S:Body>
    <ns2:destroyInstance xmlns:ns2="http://workflow.matrix.org/">
      <instanceId>{xs:string}</instanceId>
    </ns2:destroyInstance>
  </S:Body>
</S:Envelope>
Sample output message:
<?xml version="1.0" ?>
<S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/">
  <S:Body>
    <ns2:destroyInstanceResponse xmlns:ns2="http://workflow.matrix.org/">
      <destroyed>{xs:boolean}</destroyed>
    </ns2:destroyInstanceResponse>
  </S:Body>
</S:Envelope>
Operation assignAgent
Name: assignAgent
Signature: assignAgent (instanceId {xs:string}, agentName {xs:string}) => agent {xs:string}
Java signature: String assignAgent(String instanceId, String agentName)
Parameters:
name xml type occurs nillable read only references
instanceId xs:string 1 false false
agentName xs:string 1 false false
Response:
name xml type occurs nillable read only references
agent xs:string 1 false false
Sample input message:
<?xml version="1.0" ?>
<S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/">
  <S:Body>
    <ns2:assignAgent xmlns:ns2="http://workflow.matrix.org/">
      <instanceId>{xs:string}</instanceId>
      <agentName>{xs:string}</agentName>
    </ns2:assignAgent>
  </S:Body>
</S:Envelope>
Sample output message:
<?xml version="1.0" ?>
<S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/">
  <S:Body>
    <ns2:assignAgentResponse xmlns:ns2="http://workflow.matrix.org/">
      <agent>{xs:string}</agent>
    </ns2:assignAgentResponse>
  </S:Body>
</S:Envelope>
Operation processInstance
Name: processInstance
Signature: processInstance (instanceId {xs:string}, variable {workflow:Variable}*, returnVariables {xs:boolean}) => outVariable {workflow:Variable}*
Java signature: List<org.matrix.workflow.Variable> processInstance(String instanceId, List<org.matrix.workflow.Variable> variable, boolean returnVariables)
Parameters:
name xml type occurs nillable read only references
instanceId xs:string 1 false false
variable workflow:Variable 0..N true false
returnVariables xs:boolean 1 false false
Response:
name xml type occurs nillable read only references
outVariable workflow:Variable 0..N true false
Sample input message:
<?xml version="1.0" ?>
<S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/">
  <S:Body>
    <ns2:processInstance xmlns:ns2="http://workflow.matrix.org/">
      <instanceId>{xs:string}</instanceId>
      <variable>
        <name>{xs:string}</name>
        <value>{xs:string}</value>
        <type>{xs:string}</type>
      </variable>
      <returnVariables>{xs:boolean}</returnVariables>
    </ns2:processInstance>
  </S:Body>
</S:Envelope>
Sample output message:
<?xml version="1.0" ?>
<S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/">
  <S:Body>
    <ns2:processInstanceResponse xmlns:ns2="http://workflow.matrix.org/">
      <outVariable>
        <name>{xs:string}</name>
        <value>{xs:string}</value>
        <type>{xs:string}</type>
      </outVariable>
    </ns2:processInstanceResponse>
  </S:Body>
</S:Envelope>
Operation findInstances
Name: findInstances
Signature: findInstances (filter {workflow:InstanceFilter}) => instanceView {workflow:InstanceView}*
Java signature: List<org.matrix.workflow.InstanceView> findInstances(org.matrix.workflow.InstanceFilter filter)
Parameters:
name xml type occurs nillable read only references
filter workflow:InstanceFilter 1 false false
Response:
name xml type occurs nillable read only references
instanceView workflow:InstanceView 0..N true false
Sample input message:
<?xml version="1.0" ?>
<S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/">
  <S:Body>
    <ns2:findInstances xmlns:ns2="http://workflow.matrix.org/">
      <filter>
        <variable>
          <name>{xs:string}</name>
          <value>{xs:string}</value>
          <extendedVisibility>{xs:boolean}</extendedVisibility>
        </variable>
        <startDate>{mx:date}</startDate>
        <endDate>{mx:date}</endDate>
        <firstResult>{xs:int}</firstResult>
        <maxResults>{xs:int}</maxResults>
      </filter>
    </ns2:findInstances>
  </S:Body>
</S:Envelope>
Sample output message:
<?xml version="1.0" ?>
<S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/">
  <S:Body>
    <ns2:findInstancesResponse xmlns:ns2="http://workflow.matrix.org/">
      <instanceView>
        <instanceId>{xs:string}</instanceId>
        <name>{xs:string}</name>
        <version>{xs:string}</version>
        <description>{xs:string}</description>
        <state>{xs:string}</state>
        <activeNodes>{xs:string}</activeNodes>
        <startDateTime>{mx:dateTime}</startDateTime>
        <simulation>{xs:boolean}</simulation>
        <destroyButtonEnabled>{xs:boolean}</destroyButtonEnabled>
      </instanceView>
    </ns2:findInstancesResponse>
  </S:Body>
</S:Envelope>
Operation createInstance
Name: createInstance
Signature: createInstance (workflowName {xs:string}, variable {workflow:Variable}*) => instanceId {xs:string}
Java signature: String createInstance(String workflowName, List<org.matrix.workflow.Variable> variable)
Parameters:
name xml type occurs nillable read only references
workflowName xs:string 1 false false
variable workflow:Variable 0..N true false
Response:
name xml type occurs nillable read only references
instanceId xs:string 1 false false
Sample input message:
<?xml version="1.0" ?>
<S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/">
  <S:Body>
    <ns2:createInstance xmlns:ns2="http://workflow.matrix.org/">
      <workflowName>{xs:string}</workflowName>
      <variable>
        <name>{xs:string}</name>
        <value>{xs:string}</value>
        <type>{xs:string}</type>
      </variable>
    </ns2:createInstance>
  </S:Body>
</S:Envelope>
Sample output message:
<?xml version="1.0" ?>
<S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/">
  <S:Body>
    <ns2:createInstanceResponse xmlns:ns2="http://workflow.matrix.org/">
      <instanceId>{xs:string}</instanceId>
    </ns2:createInstanceResponse>
  </S:Body>
</S:Envelope>
Operation getInstanceEvents
Name: getInstanceEvents
Signature: getInstanceEvents (instanceId {xs:string}) => instanceEvent {workflow:InstanceEvent}*
Java signature: List<org.matrix.workflow.InstanceEvent> getInstanceEvents(String instanceId)
Parameters:
name xml type occurs nillable read only references
instanceId xs:string 1 false false
Response:
name xml type occurs nillable read only references
instanceEvent workflow:InstanceEvent 0..N true false
Sample input message:
<?xml version="1.0" ?>
<S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/">
  <S:Body>
    <ns2:getInstanceEvents xmlns:ns2="http://workflow.matrix.org/">
      <instanceId>{xs:string}</instanceId>
    </ns2:getInstanceEvents>
  </S:Body>
</S:Envelope>
Sample output message:
<?xml version="1.0" ?>
<S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/">
  <S:Body>
    <ns2:getInstanceEventsResponse xmlns:ns2="http://workflow.matrix.org/">
      <instanceEvent>
        <instanceId>{xs:string}</instanceId>
        <eventNum>{xs:int}</eventNum>
        <dateTime>{mx:dateTime}</dateTime>
        <actorName>{xs:string}</actorName>
        <variableChange>
          <name>{xs:string}</name>
          <type>{xs:string}</type>
          <oldValue>{xs:string}</oldValue>
          <newValue>{xs:string}</newValue>
        </variableChange>
      </instanceEvent>
    </ns2:getInstanceEventsResponse>
  </S:Body>
</S:Envelope>


Ajuntament de Sant Feliu de Llobregat (C) 2025