How to update jbpm process variable when using Remote API in JBoss BPM Suite 6?

Solution Verified - Updated -

Issue

In JBPM 3, the following code snippets are used to update the jbpm_variableinstance table's value column

    jbpmConfiguration = JbpmConfiguration.getInstance();
    jbpmContext = jbpmConfiguration.createJbpmContext();
    processInstance = jbpmContext.getProcessInstance(process.getProcessId());
    contextInstance = processInstance.getContextInstance();
    contextInstance.setVariable(strkey, strValue);

After moving to JBPM 6.0.x, how to update a process's variable using Remote API?

Environment

  • Red Hat JBoss BPM Suite(BPM Suite)
    • 6.0.x
    • 6.1.x

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.