All Downloads are FREE. Search and download functionalities are using the official Maven repository.

jadex.gpmn.runtime.plan.StartAndMonitorProcessPlan Maven / Gradle / Ivy

Go to download

The Jadex GPMN (goal oriented process modeling notation) kernel provides a goal-oriented workflow kernel. The idea is that a workflow is specified as declarative goal hierarchy, which describes what has to be achieved to fulfill the workflow. At runtime goals are pursued by executing plans represented by standard BPMN workflows. The execution of goal-based workflows is achieved by conversion to BDI agents.

There is a newer version: 2.4
Show newest version
package jadex.gpmn.runtime.plan;

import jadex.bdi.runtime.AgentEvent;
import jadex.bdi.runtime.IGoal;
import jadex.bdi.runtime.IGoalListener;
import jadex.bdi.runtime.Plan;
import jadex.commons.SUtil;

import java.util.ArrayList;
import java.util.List;

/**
 *  Create a process and the corresponding parameters.
 */
public class StartAndMonitorProcessPlan extends Plan
{
	/**
	 *  Plan body.
	 */
	public void body()
	{
		final String[] agoalnames = (String[])getParameterSet("achieve_goals").getValues();
		String[] mgoalnames = (String[])getParameterSet("maintain_goals").getValues();

		List mgoals = new ArrayList();
		for(int i=0; i




© 2015 - 2024 Weber Informatics LLC | Privacy Policy