Is there any API through which I can Add Task dynamically in running process ? For eg: Earlier there were 5 task and I want to introduce 6th and 7th task at runtime.
Not sure if this would help you but there is a class here:
/* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.flowable.engine.impl.dynamic;
import java.util.Map;
import org.flowable.bpmn.model.FlowElement;
public class DynamicUserTaskBuilder {
This file has been truncated. show original
As well as a test that may help with how to run it:
/* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.flowable.engine.test.bpmn.dynamic;
import java.util.Arrays;
import java.util.List;
import org.flowable.bpmn.model.BpmnModel;
import org.flowable.bpmn.model.FlowElement;
import org.flowable.bpmn.model.GraphicInfo;
This file has been truncated. show original
Thanks for the quick reply ! Will explore and get back to you in case of any issues.
madhu
May 20, 2020, 7:57am
4
@SantoshiP
Hi Santoshi, were you able to achieve adding task dynamically other than usertask?