cancel
Showing results for 
Search instead for 
Did you mean: 

Old Docs and rest signal event

esseti
Champ in-the-making
Champ in-the-making
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/1024x...[/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,'suspe...":[]}

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?
4 REPLIES 4

jbarrez
Star Contributor
Star Contributor
1. Docs are in the zip files of the older version on activiti.org download page

2. http://activiti.org/userguide/index.html#N14359 should give you something similar

3. Same as 2, you need to find the execution first by doing a query (http://activiti.org/userguide/index.html#N144E1)

esseti
Champ in-the-making
Champ in-the-making
i see. so i've to make a query than identify what execution instance waits for  a receive message and then call that one. i'll try it now. thanks

PS: i tried to use 5.16.4 but when i try to run an instance making a POST /runtime/process-instances it always return type is not supported. same code on 5.16.3 works.

esseti
Champ in-the-making
Champ in-the-making
. (wrong post)

jbarrez
Star Contributor
Star Contributor
> PS: i tried to use 5.16.4 but when i try to run an instance making a POST /runtime/process-instances it always return type is not supported. same code on 5.16.3 works.

OK, i put it on my list to check it out why. Could be we forgot it in the migration to Spring MVC