Skip to content

Http request plugin or message broker plugin #875

Answered by rsoika
rizalalfarizi123 asked this question in Q&A
Discussion options

You must be logged in to vote

ok - understand.

Look, this is how your plugin code looks in Imixs - there is no need for a special connector - you can use Jax-rs native:

public class RestConnectorPlugin extends AbstractPlugin {
	private static final Logger logger = Logger.getLogger(RestConnectorPlugin.class.getName());

	@Inject
	private WorkflowService workflowService;

	@Override
	public ItemCollection run(ItemCollection workitem, ItemCollection event)
			throws PluginException {
		logger.info("...connecting rest api...");
		// read configuration from event
		List<ItemCollection> apiDefinitions = workflowService.evalWorkflowResultXML(event, "api-connector",
				"GET", workitem, false);
		if (apiDefinitions != null) {…

Replies: 2 comments 15 replies

Comment options

You must be logged in to vote
3 replies
@rizalalfarizi123
Comment options

@rsoika
Comment options

@rizalalfarizi123
Comment options

Comment options

You must be logged in to vote
12 replies
@rsoika
Comment options

@rizalalfarizi123
Comment options

@rsoika
Comment options

@rizalalfarizi123
Comment options

@rsoika
Comment options

Answer selected by rizalalfarizi123
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants