Type conversion in IBM BPM




Convert Any() type to XmlElementType in IBM BPM :


Here tw.local.results variable is ANY Type and tw.local.xmlElementResult is XMLElement Type


var x = tw.system.serializer.toXml(tw.local.results);
tw.local.xmlElementResult = tw.system.serializer.fromXml(x);



Convert String type to Integer in IBM BPM :

Here tw.local.results variable is StringType and tw.local.age is IntegerType


tw.local.age = Number(tw.local.results);

Comments

Popular posts from this blog

XML Parsing in IBM BPM

Parse the JSON in IBM BPM