Axon.ivy 7.0 - the Digital Business Platform - is out now...

Hi all, Is there any official API to know whether we're running on Ivy environment or not? for checking 'server' or 'designer', we can use this API:"designer")

but what if i want to check is it ivy env or not?

For the moment, i just have a temporary solution where i try to invoke some ivy command in try catch block then see if it throw exception of not. but i need a better solution. :)


asked 09.02 at 02:34

trungdv's gravatar image

accept rate: 52%

you can improve the designer/engine check by using a constant which is available from the core API:

(09.02 at 08:45) Reguel Werme... ♦♦ Reguel%20Wermelinger's gravatar image

what exactly means ivy env or not? are you talking about java code that must determine whether it is executed by the Axon.ivy BPM engine or if it runs in plain java ?

(09.02 at 08:47) Reguel Werme... ♦♦ Reguel%20Wermelinger's gravatar image

hi @Reguel Werme... ♦♦ yes, i want to check whether i can run any command which is started with ivy or not.

(09.02 at 08:57) trungdv trungdv's gravatar image

Currently this is only possible by using internal, but accessible API.

boolean ivyEnvironment = ch.ivyteam.ivy.request.metadata.MetaData.getRequest() != null;

answered 09.02 at 10:21

Reguel%20Wermelinger's gravatar image

Reguel Werme... ♦♦
accept rate: 67%

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here



Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text]( "Title")
  • image?![alt text](/path/img.jpg "Title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported



Asked: 09.02 at 02:34

Seen: 226 times

Last updated: 09.02 at 10:21