Start workflow with javascript in Dynamics CRM 2016
<p>I need to create a JS-Library which can run workflow using new WebApi for Dynamics CRM 2016: </p>

<ul>
<li><a href="https://msdn.microsoft.com/de-de/library/mt607689.aspx" rel="nofollow">https://msdn.microsoft.com/de-de/library/mt607689.aspx</a> </li>
</ul>

<p>I need to start workflow from my Code. (workflow should be “real-time”) and not asynchronously . I will build my function-call into Ribbon on form.
If anyone can help me I would be more then thankful, since I searched all internet and could not found how to solve this, except from above link where I found this method </p>

<ul>
<li><a href="https://msdn.microsoft.com/de-de/library/mt622404.aspx" rel="nofollow">https://msdn.microsoft.com/de-de/library/mt622404.aspx</a></li>
</ul>

<p>but I'm not sure how to use this method? Once agin it has to be “real-time”
I found solutions such as: </p>

<p>-https: //processjs.codeplex.com/</p>

<p>but this does not work for me since it run workflow asynchronously. It has to be  using Web API from link provided above. I think that this Web API works only for Microsoft Dynamics 2016</p>