No "data type: XML" for SubProcess?

Avatar

Avatar
Validate 1
Level 3
BjornEricsson1
Level 3

Likes

2 likes

Total Posts

48 posts

Correct reply

1 solution
Top badges earned
Validate 1
Boost 1
Affirm 1
View profile

Avatar
Validate 1
Level 3
BjornEricsson1
Level 3

Likes

2 likes

Total Posts

48 posts

Correct reply

1 solution
Top badges earned
Validate 1
Boost 1
Affirm 1
View profile
BjornEricsson1
Level 3

08-05-2017

I'm trying to make my first reusable Subprocess. It takes XML as input and generates XML as output. It is meant to use XPath for both input and output in order to make it flexible. Now, when I instantiate it in Another process and try to set XPath for input and output it fails. I also notice thatboth input and output has "data type:Document" instead of XML. I can work around the problem by adding a "Set Value" activity before and after the instantiation and then do the XPath there and just use Variable for input and output. It works, but is not nice and not what I wanted. Can anybody explain why the data type can't be XML and why the XPath don't work direct with my Subprocess?

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar
Boost 50
Level 5
James_R_Green
Level 5

Likes

52 likes

Total Posts

191 posts

Correct reply

47 solutions
Top badges earned
Boost 50
Validate 25
Validate 10
Validate 1
Boost 5
View profile

Avatar
Boost 50
Level 5
James_R_Green
Level 5

Likes

52 likes

Total Posts

191 posts

Correct reply

47 solutions
Top badges earned
Boost 50
Validate 25
Validate 10
Validate 1
Boost 5
View profile
James_R_Green
Level 5

11-05-2017

Hi,

I modified the process with the xpath that you showed in your screenshot and it works here....

I have attached the modified lca, like last time I had to rename it to jpg. Does this new process work? If not then what version of AEM/livecycle are you using? And what input xml are you using?

Answers (6)

Answers (6)

Avatar

Avatar
Boost 50
Level 5
James_R_Green
Level 5

Likes

52 likes

Total Posts

191 posts

Correct reply

47 solutions
Top badges earned
Boost 50
Validate 25
Validate 10
Validate 1
Boost 5
View profile

Avatar
Boost 50
Level 5
James_R_Green
Level 5

Likes

52 likes

Total Posts

191 posts

Correct reply

47 solutions
Top badges earned
Boost 50
Validate 25
Validate 10
Validate 1
Boost 5
View profile
James_R_Green
Level 5

20-05-2017

Did you get this to work bjorn?

Avatar

Avatar
Boost 50
Level 5
James_R_Green
Level 5

Likes

52 likes

Total Posts

191 posts

Correct reply

47 solutions
Top badges earned
Boost 50
Validate 25
Validate 10
Validate 1
Boost 5
View profile

Avatar
Boost 50
Level 5
James_R_Green
Level 5

Likes

52 likes

Total Posts

191 posts

Correct reply

47 solutions
Top badges earned
Boost 50
Validate 25
Validate 10
Validate 1
Boost 5
View profile
James_R_Green
Level 5

11-05-2017

Hi,

I modified the process with the xpath that you showed in your screenshot and it works here....

I have attached the modified lca, like last time I had to rename it to jpg. Does this new process work? If not then what version of AEM/livecycle are you using? And what input xml are you using?

Avatar

Avatar
Validate 1
Level 3
BjornEricsson1
Level 3

Likes

2 likes

Total Posts

48 posts

Correct reply

1 solution
Top badges earned
Validate 1
Boost 1
Affirm 1
View profile

Avatar
Validate 1
Level 3
BjornEricsson1
Level 3

Likes

2 likes

Total Posts

48 posts

Correct reply

1 solution
Top badges earned
Validate 1
Boost 1
Affirm 1
View profile
BjornEricsson1
Level 3

11-05-2017

Hi,

Yes, the setup is similar to your example. What I want to do is to be able to use XPath when assigning input and OutPut. I will get an error if I do it as my example in the attached image. This image aslo shows that the input and output of the subprocess is types as Document and not XML.

/BS

Avatar

Avatar
Validate 1
Level 3
BjornEricsson1
Level 3

Likes

2 likes

Total Posts

48 posts

Correct reply

1 solution
Top badges earned
Validate 1
Boost 1
Affirm 1
View profile

Avatar
Validate 1
Level 3
BjornEricsson1
Level 3

Likes

2 likes

Total Posts

48 posts

Correct reply

1 solution
Top badges earned
Validate 1
Boost 1
Affirm 1
View profile
BjornEricsson1
Level 3

11-05-2017

Hi,

Yes, the setup is similar to your example. What I want to do is to be able to use XPath when assigning input and OutPut. I will get an error if I do it as my example in the attached image. This image aslo shows that the input and output of the subprocess is types as Document and not XML.

/BS

Avatar

Avatar
Boost 50
Level 5
James_R_Green
Level 5

Likes

52 likes

Total Posts

191 posts

Correct reply

47 solutions
Top badges earned
Boost 50
Validate 25
Validate 10
Validate 1
Boost 5
View profile

Avatar
Boost 50
Level 5
James_R_Green
Level 5

Likes

52 likes

Total Posts

191 posts

Correct reply

47 solutions
Top badges earned
Boost 50
Validate 25
Validate 10
Validate 1
Boost 5
View profile
James_R_Green
Level 5

10-05-2017

Hi Bjorn,

I have made an example lca based on what I have understood from your question. If it isn't what you mean, can you amend the example showing your problem?

The input XML I was using with this is like this:

<root>

    <node1>test1</node1>

    <node2>test2</node2>

</root>

P.s. you will have to rename from .jpg to .lca (as it wouldnt let me upload an lca)

Avatar

Avatar
Boost 50
Level 5
James_R_Green
Level 5

Likes

52 likes

Total Posts

191 posts

Correct reply

47 solutions
Top badges earned
Boost 50
Validate 25
Validate 10
Validate 1
Boost 5
View profile

Avatar
Boost 50
Level 5
James_R_Green
Level 5

Likes

52 likes

Total Posts

191 posts

Correct reply

47 solutions
Top badges earned
Boost 50
Validate 25
Validate 10
Validate 1
Boost 5
View profile
James_R_Green
Level 5

10-05-2017

Hi Bjorn,

I have made an example lca based on what I have understood from your question. If it isn't what you mean, can you amend the example showing your problem?

The input XML I was using with this is like this:

<root>

    <node1>test1</node1>

    <node2>test2</node2>

</root>

P.s. you will have to rename from .jpg to .lca (as it wouldnt let me upload an lca)