AnsweredAssumed Answered

Old Docs and rest signal event

Question asked by esseti on Oct 17, 2014
Latest reply on Oct 21, 2014 by jbarrez
Hi all,
1) where i can find the documentation of an old version? i need 5.12.1 (rest api).
2) in that version there was the rest api to signal a receiver
http://localhost:8080/activiti-rest/service/process-instance/753/signal

with the body like this
{
"activityId":"receivetask1"
}
.
now, where is it gone? how can i do the same with last version?
3) if i've a loop like this
[img]https://photos-3.dropbox.com/t/1/AABfQH7Cmcv8fgR52bxImUWXIUTWAhJbDvuHstlr8VXywQ/12/4628172/png/1024x768/3/1413561600/0/2/loop.png/6vyI30wMkq-1uSrWJ6XILe5UZdR795elpRCjrfWe-Cc[/img]

<subProcess id="subprocess1" name="Sub Process">
      <multiInstanceLoopCharacteristics isSequential="false">
        <loopCardinality>10</loopCardinality>
      </multiInstanceLoopCharacteristics>
      <startEvent id="startevent2" name="Start"></startEvent>
      <receiveTask id="receivetask1" name="Receive Task"></receiveTask>
      <sequenceFlow id="flow2" sourceRef="startevent2" targetRef="receivetask1"></sequenceFlow>
      <endEvent id="endevent2" name="End"></endEvent>
      <sequenceFlow id="flow4" sourceRef="receivetask1" targetRef="endevent2"></sequenceFlow>
    </subProcess>
and i started it via rest api, calling
/runtime/process-instances
how can i call the internal receive?
beacuse the output of process start is this:
{"id":"753","url":"http://localhost:8080/activiti-rest/service/runtime/process-instances/753','businessKey':null,'suspended':false,'processDefinitionId':'sid-82084a38-3731-4283-aef5-80c777170201:1:744','processDefinitionUrl':'http://localhost:8080/activiti-rest/service/repository/process-definitions/sid-82084a38-3731-4283-aef5-80c777170201%3A1%3A744','activityId':null,'variables":[]}

and if i signal the event (as in the point2)
i receive this back
{
    "errorMessage": "Query return 10 results instead of max 1",
    "statusCode": 500
}

any idea/help?

Outcomes