In the "Inscribe Task Switch Event" under tab "Tasks" there is a tab "Business". The first two fields are labeled "Task stage".
Is there a Pulic API to query these two fields?

asked 03.02.2017 at 08:30

rhorber's gravatar image

rhorber
(suspended)
accept rate: 0%


You can query them with the fluent task query API like this:

private static List<ITask> findFluentAPI(String code) {
    return Ivy.wf().getTaskQueryExecutor().getResults(
            TaskQuery.create()
            .where().kindCode().isEqual(code)
            //.and().kindName().isEqual("myName")
    );
}

The label on old Axon.ivy Designers is misleading and is called "stage" instead of "kind". This has been improved in newer versions.

5.1 inscription alt text

6.5 inscription alt text

link

answered 17.02.2017 at 15:11

Reguel%20Wermelinger's gravatar image

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

alternatively you can also use the old query API:

private static List<ITask> findLegacyAPI(String code) {
    // create order
    List order = PropertyOrder.create(TaskProperty.TYPE_CODE, TaskProperty.SUB_TYPE_CODE);

    // create filter
    IPropertyFilter filter = Ivy.wf().createTaskPropertyFilter(TaskProperty.KIND_CODE, RelationalOperator.EQUAL, code);

    // execute query
    IQueryResult result = Ivy.wf().findTasks(filter, order, 0, -1, true);
    return result.getResultList();
}
(17.02.2017 at 15:12) Reguel Werme... ♦♦ Reguel%20Wermelinger's gravatar image

Hi Requel That's exactly what I was looking for. Thank you.

(20.02.2017 at 10:07) rhorber rhorber's gravatar image

Follow this question

By Email:

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

By RSS:

Answers

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

Tags:

×68
×10

Asked: 03.02.2017 at 08:30

Seen: 2,187 times

Last updated: 20.02.2017 at 10:07