DZone
Thanks for visiting DZone today,
Edit Profile
  • Manage Email Subscriptions
  • How to Post to DZone
  • Article Submission Guidelines
Sign Out View Profile
  • Post an Article
  • Manage My Drafts
Over 2 million developers have joined DZone.
Log In / Join
Refcards Trend Reports
Events Video Library
Refcards
Trend Reports

Events

View Events Video Library

Related

  • Building a High-Throughput Distributed Sequence Generator Using the Hi-Lo Algorithm
  • When Snowflake Lies to You: Understanding False Failures in dbt Pipelines
  • Master-Class: Understanding Database Replication (Single, Multi, and Leaderless)
  • Liquibase: Database Change Management and Automated Deployments

Trending

  • 7 Technology Waves I’ve Seen in 30 Years of Software — Will AI Be the Next Real Transformation?
  • Implementing Secure API Gateways for Microservices Architecture
  • Implementing Observability in Distributed Systems Using OpenTelemetry
  • Getting Started With Agentic Workflows in Java and Quarkus
  1. DZone
  2. Data Engineering
  3. Databases
  4. Increase the Default Process Variable Size in jBPM

Increase the Default Process Variable Size in jBPM

In this article, see how to increase the default process variable size in jBPM.

By 
Amit Nijhawan user avatar
Amit Nijhawan
·
Dec. 09, 20 · Tutorial
Likes (3)
Comment
Save
Tweet
Share
4.6K Views

Join the DZone community and get the full member experience.

Join For Free

Process variables in jBPM are limited to 255 characters by default. The number of characters in turn are also dependent on the character set that is being followed. So, it is always better to have an option to increase the default value.

This article is just an extension of the solution provided in the above link; simplifying things a little more for beginners.

To increase the variable size, two configuration changes are needed to be one.

Change the Column Data Type in jBPM Database

Variable information is stored in “VariableInstanceLog” table in jBPM database. Find the table in the jBPM schema and increase the VARCHAR size of the column “value” to the desired size (lets say 20000)

Ask jBPM to Use the New Size

Even if we increase the size of the value column in the database, jBPM will still truncate any value bigger than 255 before saving it to the database. We need to set the following system property to let jBPM know the new size.

Java
 




x


 
1
-Dorg.jbpm.var.log.length=20000


where 20000 is the desired size of the variable value.

As jBPM includes ant script to start the jboss (now wildfly) server, we can configure the system property in the standalone.xml file. ant task will read this file and set the system properties while starting the server.

To do this, open standalone.xml file located in the jBPM configuration directory and open it with a text editor. Look for target by name and add the following line under the exec tag along with the other properties.       

XML
xxxxxxxxxx
1
 
1
 <property name="org.jbpm.var.log.length" value="20000"/>


The final exec tag should look like the following under standalone.xml target.

XML
xxxxxxxxxx
1
 
1
<system-properties>
2
3
        <property name="org.jbpm.var.log.length" value="20000"/>
4
5
    </system-properties
Database

Opinions expressed by DZone contributors are their own.

Related

  • Building a High-Throughput Distributed Sequence Generator Using the Hi-Lo Algorithm
  • When Snowflake Lies to You: Understanding False Failures in dbt Pipelines
  • Master-Class: Understanding Database Replication (Single, Multi, and Leaderless)
  • Liquibase: Database Change Management and Automated Deployments

Partner Resources

×

Comments

The likes didn't load as expected. Please refresh the page and try again.

  • RSS
  • X
  • Facebook

ABOUT US

  • About DZone
  • Support and feedback
  • Community research

ADVERTISE

  • Advertise with DZone

CONTRIBUTE ON DZONE

  • Article Submission Guidelines
  • Become a Contributor
  • Core Program
  • Visit the Writers' Zone

LEGAL

  • Terms of Service
  • Privacy Policy

CONTACT US

  • 3343 Perimeter Hill Drive
  • Suite 215
  • Nashville, TN 37211
  • [email protected]

Let's be friends:

  • RSS
  • X
  • Facebook