<html>
  <head>
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix">If I understand you correctly, you want
      to distinguish between "work item was created" and "work item was
      finished" events.<br>
      <br>
      In order to do this, there is the changeType attribute:<br>
      <meta http-equiv="content-type" content="text/html; charset=utf-8">
      <pre style="background-color:#ffffff;color:#000000;font-family:'Courier New';font-size:9,0pt;"><font size="-1"><span style="color:#000080;font-weight:bold;">private </span>ChangeType <span style="color:#660e7a;font-weight:bold;">changeType</span>;   <span style="color:#808080;font-style:italic;">// ADD = process/task start, DELETE = process/task finish (for now)</span></font></pre>
      You can filter for this attribute directly in the notifier
      configuration (in system config), by using e.g.<br>
      <meta http-equiv="content-type" content="text/html; charset=utf-8">
      <pre style="background-color:#ffffff;color:#000000;font-family:'Courier New';font-size:9,0pt;"><small><span style="background-color:#efefef;"><</span><span style="color:#000080;background-color:#efefef;font-weight:bold;">operation</span><span style="background-color:#efefef;">></span>add<span style="background-color:#efefef;"></</span><span style="color:#000080;background-color:#efefef;font-weight:bold;">operation</span><span style="background-color:#efefef;">></span></small></pre>
      directive to send notifications only on "work item was added"
      (i.e. created) events.<br>
      <br>
      Is this what you were asking for?<br>
      <br>
      Pavol<br>
    </div>
    <blockquote
      cite="mid:23F96C83E30B7E4DA253EBD07C550836014C869B@EX-MB2.solar.local"
      type="cite">
      <pre wrap="">This is clear for me.
What should I use as flag to know that approver must take a dessision?
It seems I should use operationStatusCustom. It takes values:
- null if assignment is waiting for approval 
- __REJECTED__, if approver rejected an assignment
- __APPROVED__, if approver appreved the assignment
________________________________________
От: midPoint [<a class="moz-txt-link-abbreviated" href="mailto:midpoint-bounces@lists.evolveum.com">midpoint-bounces@lists.evolveum.com</a>] от имени Pavol Mederly [<a class="moz-txt-link-abbreviated" href="mailto:mederly@evolveum.com">mederly@evolveum.com</a>]
Отправлено: 19 мая 2015 г. 12:13
Кому: <a class="moz-txt-link-abbreviated" href="mailto:midpoint@lists.evolveum.com">midpoint@lists.evolveum.com</a>
Тема: Re: [midPoint] Send email to approval

Alexej,

there are the following workflow-related events:

- WorkItemEvent - when a work item (a request to given approver) is
being created or finished,
- WorkflowProcessEvent - when a complete workflow process is started or
finished.

Note that a process can contain more approvals, e.g. in case of
multilevel approvals.

So, depending on what you want to achieve, you could process one (or
both) of these two events.

Regards,
Pavol

On 19. 5. 2015 11:09, Алексей Ващенков wrote:
</pre>
      <blockquote type="cite">
        <pre wrap="">I want to send emails only to approver while assigning a role.
What easest way to find out if the event is event abount approve adding?
_______________________________________________
midPoint mailing list
<a class="moz-txt-link-abbreviated" href="mailto:midPoint@lists.evolveum.com">midPoint@lists.evolveum.com</a>
<a class="moz-txt-link-freetext" href="http://lists.evolveum.com/mailman/listinfo/midpoint">http://lists.evolveum.com/mailman/listinfo/midpoint</a>
</pre>
      </blockquote>
      <pre wrap="">

_______________________________________________
midPoint mailing list
<a class="moz-txt-link-abbreviated" href="mailto:midPoint@lists.evolveum.com">midPoint@lists.evolveum.com</a>
<a class="moz-txt-link-freetext" href="http://lists.evolveum.com/mailman/listinfo/midpoint">http://lists.evolveum.com/mailman/listinfo/midpoint</a>
_______________________________________________
midPoint mailing list
<a class="moz-txt-link-abbreviated" href="mailto:midPoint@lists.evolveum.com">midPoint@lists.evolveum.com</a>
<a class="moz-txt-link-freetext" href="http://lists.evolveum.com/mailman/listinfo/midpoint">http://lists.evolveum.com/mailman/listinfo/midpoint</a>
</pre>
    </blockquote>
    <br>
  </body>
</html>