This service is archived, please use

Home » Capella » M2Doc » Custom Service (how to get parameter)
Custom Service [message #3738] Mon, 02 December 2019 08:19 Go to previous message is currently offline
Messages: 37
Registered: April 2019
Hi all,

I wrote a Java Service that I call like this in my template :

{m:for pc | self.eAllContents(pa::PhysicalComponent)->select(p|'the parameter')).eAllContents(pa::PhysicalComponent)}

because I don't know how to test "the parameter" in my java Service.

In fact I would like to call my Java service like this :

{m:for pc | self.eAllContents(pa::PhysicalComponent)}

and get all PhysicalComponent with name 'the parameter' in the Java Service and not in the template.

Can someone help me please ?


Read Message
Read Message
Read Message
Next Topic: Calling custom service from interpreter view
Goto Forum:

Current Time: Sat May 30 01:40:44 EST 2020

Total time taken to generate the page: 0.01533 seconds