cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Renaming PurePath based on method argument

iranor1
Newcomer

Hello, I would like to know how you can use a captured argument as the PurePath name instead of the generic class name.

For example, i have a sensor configured on "Bean.execute(JobContext context)", I would like to have "context.getName()" as the PurePath name, instead of "Bean.execute(JobContext context)".

It is configured as such:

  • Place: include
  • Type: method
  • Pattern: execute (equals)
  • Argument Rules (Specify Methods by Arguments)
  • Type pattern: JobContext, capture checked, match equals, accessor = .getName()
  • Capture event checked
  • Allow to start PurePath from this method (Entry point) checked

On a side note, how is the name captured ? For example on elements that have URIs.

1 REPLY 1

I have the same question, I need to change purepath name to the argument value of the entrypoint. is it possible?