6 Replies Latest reply on May 21, 2014 11:16 PM by lakshjee

    JBPM6 Console add attachment

    grafvader

      How to associate document like MS Word, PDF, Excel into process? Example in first user task user add document. Second user task user read this document and approve.

        • 1. Re: JBPM6 Console add attachment
          swiderski.maciej

          currently this is not supported out of the box so you would need to create separate logic that would upload a file and make it as process variable. As far as I know it's on the road map for form modeler but feel free to drop jira for it so it can be tracked.

           

          HTH

          1 of 1 people found this helpful
          • 2. Re: JBPM6 Console add attachment
            pzapataf

            You can use custom form fields to implement file upload and storage. There's an example at jbpm-form-modeler/jbpm-form-modeler-sample-custom-types at master · droolsjbpm/jbpm-form-modeler · GitHub which is explained in the jBPM 6 user manual, chapter 13.3.3.1.1. 'How to create Custom Field Types'

            1 of 1 people found this helpful
            • 3. Re: JBPM6 Console add attachment
              lakshjee

              Hi,

              Could anyone can elaborate how to add custome form field? because in my form modeler properties custom field drop down is null. 

               

              Thanks in advance

              • 4. Re: JBPM6 Console add attachment
                lakshjee

                Hi,

                I could be able to create attachment through JBPM6.  But at the task when i uploading an attachment and complete, it doesn't get complete.  Please advise.

                Server log as follows.

                ,196 WARN  [org.jbpm.services.task.persistence.TaskTransactionInterceptor] (http--127.0.0.1-8080-5) Could not commit session: java.lang.IllegalArgumentException: Named query not found: getAllTasksEvents

                  at org.hibernate.ejb.AbstractEntityManagerImpl.createNamedQuery(AbstractEntityManagerImpl.java:636) [hibernate-entitymanager-4.0.1.Final.jar:4.0.1.Final]

                  at org.jbpm.services.task.persistence.JPATaskPersistenceContext.queryWithParametersInTransaction(JPATaskPersistenceContext.java:371) [jbpm-human-task-core-6.0.1.Final.jar:6.0.1.Final]

                  at org.jbpm.services.task.audit.GetAuditEventsCommand.execute(GetAuditEventsCommand.java:33) [jbpm-human-task-audit-6.0.1.Final.jar:6.0.1.Final]

                 

                attach.jpg

                • 5. Re: JBPM6 Console add attachment
                  lakshjee

                  I could be able to resolve my problem. The problem was i didn't define the field type in the data modler. when i define it as string at the data modler, it worked.

                  • 6. Re: JBPM6 Console add attachment
                    lakshjee

                    even though i set it to field type String and complete the task the file attachment does not get save.  A message displays as no file chosen.  Please assist me.