This service is archived, please use www.eclipse.org/forums


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

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

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

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)}
{m:pc.ServerTable()}
{m:endfor}

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

Can someone help me please ?

Thanks




 
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