Skip to content
This repository has been archived by the owner on Aug 28, 2023. It is now read-only.

How to implement conditional statement for the jolt transformation #122

Open
Saravanan493556 opened this issue Feb 5, 2019 · 1 comment

Comments

@Saravanan493556
Copy link

Saravanan493556 commented Feb 5, 2019

This is the input i have:

{

"Consumer": [{
		"id": "fbf814eaae27",
		"singleton": "true"
	}
],
"CoDebtor": [{
		"id": "a452",
		"singleton": true
	}
],
"File": [{
		"id": "bdd99885",
		"singleton": "true"
	}
]
}

[
{
"operation": "shift",
"spec": {
"Consumer": {
"": {
"id": "ConsumerGroup[&1].id",
"singleton": {
"ST
": {
"#Stater": "Consumer.[&3].singleton"
},
"HV*": {
"#future": "Consumer.[&3].singleton"
},
"*": {
"singleton": "Consumer.[&3].singleton"
}
}

			}
		}
	}
}

]

Desired output;
If "singleton" Value starts with "ST" output should have "single".
If "singleton" Value starts with "HV" output should have "double".
If "singleton" Value starts with other letters, output should have same words as in input.

@Saravanan493556
Copy link
Author

Desired output;
If "singleton" Value starts with "ST" output should have "single".
If "singleton" Value starts with "hv" output should have "double".
If "singleton" Value starts with other letters, output should have same words as in input.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant