Click or drag to resize

RuntimeServiceCreateGlobalList Method

Creates a global list. Intended for web use only.

Namespace:  Advantys.Workflow.Web.Services.Processes.Runtime
Assembly:  Advantys.Workflow.Web.Services.Processes.Runtime (in Advantys.Workflow.Web.Services.Processes.Runtime.dll) Version: 9.1.0.0 (9.1.0.20241025)
Syntax
public int CreateGlobalList(
	string listDefinition
)

Parameters

listDefinition
Type: SystemString
Definition of the list as an XML string. Element names are case sensitive.

Return Value

Type: Int32
The created list ID
Remarks
Available since WorkflowGen version: 6.2.0

Optional Parameters.

These parameters can be used in the query string or as parameters of the Headers object in the RuntimeService class instance. See example below.

ReplaceIfExists (bool)Sets whether or not to replace a global list with the same name.
Sample global list definition with items:
XML
<GlobalList>
 <Name>MyList</Name>
 <ParticipantName>DEFAULT_PROCESSMANAGER</ParticipantName>
 <Content>
   <Databind DatabindConnectionMode="none">
   </Databind>
   <Headers>
      <Header Name="col1" Type="TEXT">Col1</Header>
     <Header Name="col2" Type="TEXT">Col2</Header>
   </Headers>
   <Items>
     <Item>
       <Column Name="col1">
         <Value Lang="default">value1-1</Value>
       </Column>
       <Column Name="col2">
         <Value Lang="default">value2-1</Value>
       </Column>
     </Item>
     <Item>
       <Column Name="col1">
         <Value Lang="default">value1-2</Value>
       </Column>
       <Column Name="col2">
         <Value Lang="default">value2-2</Value>
       </Column>
     </Item>
   </Items>
 </Content>
</GlobalList>
Sample global list definition with databind:
XML
<GlobalList>
 <Name>MyList2</Name>
 <ParticipantName></ParticipantName>
 <Content>
   <Databind DatabindConnectionMode="select">
     <DatabindConnectionName>MainDbSource2</DatabindConnectionName>
     <DatabindSelectCommand>select top 10 * from users</DatabindSelectCommand>
   </Databind>
 </Content>
</GlobalList>
Sample code:
RuntimeServiceWebService.RuntimeService myRuntimeService = new RuntimeServiceWebService.RuntimeService();
RuntimeServiceWebService.GlobalListHeader myGlobalListHeader= new RuntimeServiceWebService.GlobalListHeader();
myRuntimeService.GlobalListHeaderValue = myGlobalListHeader;

myGlobalListHeader.ReplaceIfExists = replaceIfExists;

string createdGlobalListId = myRuntimeService.CreateGlobalList(listDefinition);

See Also