Hi all

Is there any ways to set case status to DONE? and should we do that manually?

Thanks

asked 20.03.2017 at 08:53

trungdv's gravatar image

trungdv
(suspended)
accept rate: 52%


There is no API to set the case status to DONE. A case is DONE when all tasks of the actual case are done. You have the opportunity to DESTROY ICase#destroy() a case manually. Can you explain your use case?

link

answered 20.03.2017 at 10:11

Alex%20Suter's gravatar image

Alex Suter ♦♦
3.1k122247
accept rate: 84%

Hi @Alex Suter ♦♦

My case is:

  • I working on task A1 belongs to case A

  • task A1 have a button, and when I click on that button, case B and case C must be set to DONE (their tasks also)

(21.03.2017 at 07:32) trungdv trungdv's gravatar image

Hi @trungdv

The logic is as follows: In the special case if task A1 is done, tasks of Task B1 and Task C1 must not be done anymore. From an user point of view I would like to see, that Task B1 and Task C1 are not really done - because nobody really did the work. They are destroyed. You also can destroy on task level ITask#destroy.

But you have to ask you the following question: Is it a good solution to have parallel tasks, when some of them not have to be done, when another task is done? The user may do some unnecessary work.

(21.03.2017 at 11:12) Alex Suter ♦♦ Alex%20Suter's gravatar image

hi @Alex Suter ♦♦

I totally agree with you that we should set state to DESTROY, it's better than DONE in this situation. And anyway we can't set case status to DONE, right?

I think another way is we can take advantage of boundary signal to clean up the Case.

Thanks

(21.03.2017 at 11:31) trungdv trungdv's gravatar image

Hi @trungdv

No, you can't set status to DONE via API. Boundary signal would be a really nice solution for that.

A Signal Boundary Event destroys an open task of an user if a signal code is received that matches the inscribed pattern.

(21.03.2017 at 11:55) Alex Suter ♦♦ Alex%20Suter'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:

×18

Asked: 20.03.2017 at 08:53

Seen: 2,070 times

Last updated: 21.03.2017 at 12:06