Created
May 29, 2020 02:51
-
-
Save aimtiaz11/6240b6eb741827541cf11ff21c26b783 to your computer and use it in GitHub Desktop.
Dataweave 1.0 - Custom Util functions
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
%function asString(val) ( | |
(val as :string) when val != null otherwise null | |
) | |
%function asNum(val) ( | |
(val as :number) when val != null otherwise null | |
) | |
--- | |
{ | |
asString: (val) -> asString(val), | |
asNum: (val) -> asNum(val) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment