OCLOperators split
This page was created by Hans.karlsen@mdriven.net on 2017-05-02. Last edited by Stephanie@mdriven.net on 2025-02-10.

In OCL the string split function gets expects a char - but ocl defaults single characters to string. To solve this you can go like this:

SomeString.split('X'.toCharArray)

This text SomeString.split('X') will give you the error: 31:System.String does not conform to Collection(System.Char)