cancel
Showing results for 
Search instead for 
Did you mean: 

Mapping requirement

Former Member
0 Kudos

Hi Experts,

Source Structure:

MT_TEST (1;1)

UTService (1;1)

Request (1;1)

SelectedByCSM (1:Unbounded)

StartDate (0:1)

EndDate (0:1)

where SelectedByCSM,StartDate,EndDate fileds are the element of Reuqest node whereas UTService is the parent node.

UTService 1;1

- - - - - - - - Resuest 1;1

- - - - - - SelectedByCSM (1:Unbounded)

- - - - - - StartDate (0:1)

- - - - - - EndDate (0:1)

Target Structure:

MT_RESULT (1;1)

Request (1:1)

TimeRequest (0;Inbounded)

TimeRange (1:1)

StartDate (0:1)

EndDate (0:1)

where Request is Parent node under TimeRequest and TimeRange, whereas StartDate & EndDate are comes under TimeRange.

Resuest (1;1)

- - - - - - - -> TimeRequest (0;Inbounded)

- - - - - - - -> TimeRange (1;1)

- - - - - - > StartDate (0:1)

- - - - - - > EndDate (0:1)

Requirement: For every SelectedByCSM field the target TimeRequest should create along with TimeRange elements StartDate and EndDate. At present muliple TimeRequest are created but with only first TimeRange populated the StartDate and EndDate values and for rest TimeRequest values are not filled.

Sameer!

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Sameer,

Try with the below logic:

Source> Collapse context>Splitbyvalue(eachvalue)-->Target

Thanks,

Former Member
0 Kudos

As you suggested, I tried it earlier but not getting desired output.

Any other logic?

Former Member
0 Kudos

Just use :

Source>Splitbyvalue(eachvalue)>Target.

Try and let me know the output.

Thanks

Former Member
0 Kudos

By using this, only single TimeSeriesRequest node is created with TimeRange element StartDate and EndDate values.

Since we required multiple times for every SelectByCIM there should be multiple TimeSeriesRequest node to be created with TimeRange element StartDate and EndDate values

Former Member
0 Kudos

Source>Splitbyvalue(eachvalue)->Collapse context-->Target

This should work.

Former Member
0 Kudos

Nope this also not woked..

Former Member
0 Kudos

Try as Source>Remove context>splitbyvalue-->target

This should work.

Thanks,

former_member207622
Contributor
0 Kudos

Can you confirm your mapping , Since Time range is a separate node Time request is a separate node

We can create time request as many times since ocurrence is 0-unbounded

But time range being a separate node and occurence 1-1 will occur only once in the complete document

If i am not wrong

regards

Ninad

Former Member
0 Kudos

No solution yet...still waiting for the inputs.

Is there any other logic to acheive required output ?????