REST StartInstance does not work

  • 20 October 2015
  • 3 replies
  • 2 views

Badge +6

Good morning,

 

I am triying to start a workflow with REST service, with this URL

 

http://localhost/K2Services/REST.svc/Process/Definitions(ProjectRest/ProcessRest)/StartNewProcessInstance

 

And the browser is retrieving the error Endpoint not found

 

Anybody know the reason?

 

Thank you

 

Juan Antonio


3 replies

Badge +6

I progressed with this issue, now i have another message, using this new URL

http://localhost/K2Services/REST.svc/Process/Definitions([ProjectRest]%20[ProcessRest])/StartInstance?folio=FOLIO

<Failure xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.k2.com/framework/d1" Code="25223" ID="0">

 

<Message>Process [ProjectRest] [ProcessRest] not found</Message><Description>client-failure</Description>

 

</Failure>

 

I deployed the workflow and i created some instances. I need to do any other activity?

 

Thank you

 

Juan Antonio

 

Badge +6

Changing the Web Service to invoke a workflow is solved, using WS instead of REST

Badge +1

This is a partial solution.

 

Right solution is to have the good url :

 

http://formflow-dev.test.cpm/k2services/REST.svc/Process/Definitions(NCQIAP_B_NC%20-%20SR)/StartInstance?folio=SR12

 

ProjectNameWorflowname . ex : NCQIAPNC - SR

 

You shoud replace in the URL   by _B_ 

 

 

Reply