Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9040255
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T09:56:33+00:00 2026-06-16T09:56:33+00:00

Wonder if anyone can give me a straight answer for this. It’s mostly curiosity,

  • 0

Wonder if anyone can give me a straight answer for this. It’s mostly curiosity, though might be something important.

When using jBPM, I have 2 options to declare process variables:

1) passing parameters to BPMN through java code, using a Map, where string is the variable name and Object its value

2) directly on the BPMN properties

I noticed recently that it’s sufficient to declare process variables in BPMN. Should I only declare it there or should I declare it in the java class as well? What are the differences here?

Cheers

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-16T09:56:34+00:00Added an answer on June 16, 2026 at 9:56 am

    The BPMN file must define all the process variables that are going to be used in the different nodes of the process. Process variables are mainly used for mapping input/output variables to/from tasks. If in TaskA you need a variable coming from the process, you must have a variable defined in your process and you have to define the correct mapping. In order to use a variable in your process you must define it first.
    The misconception here is that the BPMN only defines the name and type of its variables, but not their structures. If you want to set values to those variables when the process is started, you must provide the Map you have mentioned. jBPM will ‘copy’ the values of the Map to the variables in the process. The keys you use in the Map must correspond to the name of the variables you have defined in your process.

    Hope it helps,

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a bit of a pickle here and wonder if anyone can give
I wonder if anyone can help - I have this error showing recently when
I wonder is anyone can look at this code and tell me why calling
I wonder if anyone can help me filter this data in some way? Here
I wonder if anyone can tell me or give me a guide of how
wonder if anyone can help - I thought I had solved this but i
I am a beginner in web/javascript programming and wonder if anyone can give me
I wonder if anyone can help with the following. using (FbConnection conn = new
Wonder if anyone can help me with this problem. I have created a Window
I wonder if anyone can help with this? I have a bash script. It

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.