cancel
Showing results for 
Search instead for 
Did you mean: 

Mapping enumeration (multiple values) to a 1..n field

Former Member
0 Kudos

Hi Experts,

I try to pass an enumeration (with three values) to a field of type string (1..unbounded). Therefor I have created an XSD file with this three values:

<?xml version="1.0" encoding="UTF-8" standalone="no"?>

<xsd:schema xmlns="http://XXXX.net/Reservation/Sharepoint"

  xmlns:xsd="http://www.w3.org/2001/XMLSchema" targetNamespace="http://XXXX.net/Reservation/Sharepoint">

  <xsd:complexType name="SubscribeEventTypes">

  <xsd:sequence>

  <xsd:element name="EventTypes">

  <xsd:complexType>

  <xsd:sequence>

  <xsd:element maxOccurs="unbounded" name="EventType">

  <xsd:simpleType>

  <xsd:restriction base="xsd:string">

  <xsd:enumeration value="CreatedEvent" />

  <xsd:enumeration value="ModifiedEvent" />

  <xsd:enumeration value="DeletedEvent" />

  </xsd:restriction>

  </xsd:simpleType>

  </xsd:element>

  </xsd:sequence>

  </xsd:complexType>

  </xsd:element>

  </xsd:sequence>

  </xsd:complexType>

</xsd:schema>

The XSD based on the Microsoft Web Service Interface for Exchange Server (OLX).

Another try of myself was the string-joing extraction (but did not worked for me):

string-join("CreatedEvent,ModifiedEvent,DeletedEvent",",")

Without this values, I can't start the accordant operation.

Many Thanks for help.

Cheers,

Cengiz

Accepted Solutions (0)

Answers (1)

Answers (1)

junwu
Active Contributor
0 Kudos

i don't know if you understand what is xsd:enumeration

Former Member
0 Kudos

Let me tell you this: It is a field with optional (in my scenario) three different values of the same kind of parameter (string). I have to post not one, but three different strings to a request object.

junwu
Active Contributor
0 Kudos

but when your xml comes, it (one element EventType)only contains one value, do you know that?

Former Member
0 Kudos

No, it's not a part of response what I'm talking about. I try to pass three values to an enumeration field which belongs to the request object. Microsoft has a Web Service interface to access the content of the MS Exchange (OLX) server. If you want to start this operation, you need to pass these values to the request object's parameter named "EventTypes":

"CreatedEvent", "ModifiedEvent" and "DeletedEvent"

I have tried to do this with the BPM exclusion "single-join". Here you can define these three values and a separater (e. g. a comma), but has not worked for me.

Cheers,

Cengiz

junwu
Active Contributor
0 Kudos

not able to follow u.