2 Replies Latest reply on Jul 13, 2008 7:51 PM by coolex

    Business Process Context and JBPM Process Variables

    coolex

      Hello!


      Is there any difference between the Business Process Variables I define in my process definition like:


      <task name="This is my Task" swimlane="xyz">
                     <description>
                          Description of Task
                     </description>
                     <controller>
                          <variable access="read,write" name="variable1"></variable>
                          <variable access="read,write" name="variable2"></variable>
                     </controller>
      </task>



      and variables I define in my POJO classes with the help of Business Process Context Annotations like:

      @Out(scope=ScopeType.BUSINESS_PROCESS, required=false)
      String variable1;
      @Out(scope=ScopeType.BUSINESS_PROCESS, required=false)
      String variable2;


      Or maybe there is no difference?


      Thanks.
      Axel

        • 1. Re: Business Process Context and JBPM Process Variables
          mikool

          So, as I understand the first alternative is related to a form you can generate for the process. The variables in the second variant are not related to a special form but can be used anywhere in process.

          • 2. Re: Business Process Context and JBPM Process Variables
            coolex

            Are you sure?
            Does anybody else have an idea about the connection of Business Process Context and JBPM Process Variables? I mean using

            @Out(scope=ScopeType.BUSINESS_PROCESS, required=false)
            String variable1;

            is it the same like
            <controller>
                <variable access="read,write" name="variable1"></variable>
            </controller>
            

            in a process definition?
            Please help me to get an idea.