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:


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.2017 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: ivy.wf.getApplication().getName().equals(IApplication.DESIGNER_APPLICATION_NAME)

(09.02.2017 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.2017 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.2017 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.2017 at 10:21

Reguel%20Wermelinger's gravatar image

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

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](http://url.com/ "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.2017 at 02:34

Seen: 593 times

Last updated: 09.02.2017 at 10:21