Hi,
I am new in flowable, just wanted to create custom task please guide me from where i can start and what are the step to create simple custom task,
the task just accept input parameter and return output parameter, with just simple business logic,
please guide me how many files i have to modified and in which package too.
Hi Amstitan.
In the case when logic is really simple you can just use a scriptTask
https://flowable.org/docs/userguide/index.html#bpmnScriptTask
working examples:
/* 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.examples.bpmn.scripttask;
import com.fasterxml.jackson.databind.node.ObjectNode;
import groovy.lang.MissingPropertyException;
import org.flowable.common.engine.api.FlowableException;
import org.flowable.common.engine.impl.util.CollectionUtil;
import org.flowable.engine.impl.test.PluggableFlowableTestCase;
import org.flowable.engine.runtime.ProcessInstance;
This file has been truncated. show original
Regards
Martin
Hi,
Thanks for your reply, i have just modified stencilset_bpmn.json file with adding Node same as Service Task, it gives me Json Converter Error, it can be resolve but i need to understand what is json converter role. what thing i need to modify.
I just need a custom stencil similar behavior to Service task but need to apply basic business logic,
I have searched alot but did not find any proper beginner guide or tutorial for this one.
Hi Amstitan,
As a beginner you do not need to extend stencilsets. If you extend stencil set, you can provide your own tasks for modelers.
Just use
https://flowable.org/docs/userguide/index.html#bpmnScriptTask
or
https://flowable.org/docs/userguide/index.html#bpmnJavaServiceTask
and implement your own logic there.
And the only file which is needed in the case of ScriptTask is process model.
Regards
Martin