Quantcast
Channel: Bonitasoft Community - Bonita 7
Viewing all 34 articles
Browse latest View live

Can I use a button only to change the value of a variable?

$
0
0

Hi all

I am a newbie at Bonita 7.2.0, and have some doubts.

I only want to change some value, but I don't know how to do it, because I have mandatory to choose one option between, send task, init process, HTTP Request, Post, Get, or Add or Delete from a collection.
I think there is no way, because now I have choosen Send task, and this changes the value, but it shows an warning. Saying Error trying to execute the task. But It makes what I want.
Other way is making this with a radio button and I think it will not show any error, but this isn't what I want to show, isn't my design.

Thank you very much.

Any assistance would be greatly appreciated.

Kind regards,
Héctor


Deploying multiple BDM

$
0
0

Hi,

I'm using Bonita 7.2.2 and I have some process already deployed with BDM. Now I deployed a bar file in my environment and to resolve the process, I deployed bdm.zip exported from some other studio using technical user login. But then I noticed that previously deployed process became unresolved because business data was not available. Is this normal??

Bonita recognizes only last deployed BDM?
If I want previous business data too then how can I manage that?

Thank you in advance.

[closed] how to use Target URL on success to move to next human task

$
0
0

hi,

how can i use the Target URL on success in the button button widget, or the hyperlink widget
to move to the next human task ?

thanks
gj.

Pageflow form example

$
0
0

This sample presents a pageflow (or mutli-page) form created with Bonita BPM 7. This resulting form is equivalent to the pageflow form that existed in Bonita BPM 5 & 6.

Documentation available here: https://github.com/Bonitasoft-Community/pageflow-form-example

Issues tracker available here: https://github.com/Bonitasoft-Community/pageflow-form-example/issues

Pageflow form created with Bonita BPM 7

Category: 
Total downloads: 1 796
Version BonitaBPM Version Post date Download Link
v1.1 for Bonita BPM 7.2 and onward 7.2.x 2016-Mar-02 Download
652 downloads
Release note
v1.0 for Bonita BPM 7.1.x 7.1.x 2015-Sep-23 Download
1144 downloads
Release note

How to refresh a widget

$
0
0

Hi,

I have a process built in Bonita 7.1.2. and I've made a summary page for all the active cases. I use some widgets as a Data Table, texts, etc.

My question is, how can I put a button or something that refreshes the data on the summary page? I don't want implement a method that refreshes the window, I only want to refresh the Data Table.

Thanks in advance.

David.

How to get all tasks for a user via REST API?

$
0
0

Hi,

I want to retrieve all the tasks for a user using the REST API, not only the assigned i want to retrieve the *pending *tasks too as the Bonita Portal does.

I've been using this , but it only retrieves the assigned tasks. I didn't find nothing in the documentation about pending tasks.

Any ideas?

Thank you.

Bonita 7 - Tomcat SQL Server

$
0
0

Bonjour,
Je souhaiterai réaliser une installation Bonita 7.1 - Tomcat 7- MSSQL Server 2012 sur un Windows Server 2008 R2
Dans la configuration des environnements : http://documentation.bonitasoft.com/hardware-and-software-requirements-2 il est dit que qu'un environnement Tomcat/SQL Server ne serait pas supporté et ne fonctionnerait tout simplement pas à cause de Bitronix.
existe-t'il une alternative à Bitronix ? Il existe une documentation pour Bonita 6.3 avec Atomikos. Cette configuration est-elle encore expérimentale ? Que recommandez-vous pour pouvoir utiliser Tomcat avec SQL Server ?

Merci.

How to call process variable into user interface in bonita 7 [ need tutorial ]

$
0
0

Hello guys,

I'm interested about BPM and I've installed bonita 5 and 7 in my computer.
I've created my process business into bpm modeling, and now i'm in phase of developing my business process into application ( UI Designer ).
In my modeling process, i've created a process variable ( Java Object - java.util.List [No Coding, Just Created] ) to stored my MySQL - query ( Created using Graphical Connector In ).

I've tried on bonita 5 and i stored the connector into a suggestbox and it's work but not on bonita 7, it's pretty hard to show the process variable into UI, i did the same thing as bonita 5. I read in bonita documentation it's needed REST API, so i tried REST API.
1. ../API/bpm/caseVariable?p=0&c=10&f=case_id={{caseId}}
2. ../API/bpm/activityVariable/{{ActivityName}}/{{Variable}}
but it still didn't work too.

Can anyone give me a short tutorial how to use or call process variable into user interface on bonita 7 ?

Thank you,
Best Regards.

Dhany Lugina.


Bonita 7.+ REST Anonymous User

$
0
0

In all the 7.+ Release notes Limitations and known issues it says that

Autologin / Anonymous access to form is not available with the new Form application.

Is this a Limitation or a Known Issue as they are different?

Limitation means will never be implemented, Known issues will be fixed at some stage...

Can Bonitasoft please separate them so we know what we are looking at/for.

for example I don't know if AutoLogin will never, or will maybe fixed in the future meaning I will always have to logon to access any process and or form.

regards
Seán

Custom widget to validate user input

$
0
0

Not really a question but I could not find a lot of information in the documentation or the existing contributed projects.

I have a form with SIREN / SIRET fields (those are identification numbers for french companies). A siren is 9 digits and a siret is 14. I could easily use standard widgets for the length but that was all.

So I created a custom widget starting with pbInput standard widget (workspace/default/web_widgets). I removed minLength, maxLength, type, min value, max value and and added an inputType property which value can be siren or siret (default: siren).

The template I used is derivated from pbInput:

  1. <!-- The custom widget template is defined here
  2. - You can use standard HTML tags and AngularJS built-in directives, scope and interpolation system
  3. - Custom widget properties defined on the right can be used as variables in a templates with properties.newProperty
  4. - Functions exposed in the controller can be used with ctrl.newFunction()
  5. -->
  6.  
  7. <div ng-class="{
  8. 'form-horizontal': properties.labelPosition === 'left'&& !properties.labelHidden,
  9. 'row': properties.labelPosition === 'top'&& !properties.labelHidden || properties.labelHidden
  10. }">
  11. <div class="form-group">
  12. <label
  13. ng-if="!properties.labelHidden"
  14. ng-class="{ 'control-label--required': properties.required }"
  15. class="control-label col-xs-{{ !properties.labelHidden && properties.labelPosition === 'left' ? properties.labelWidth : 12 }}">
  16. {{ properties.label | uiTranslate }}
  17. </label>
  18. <div class="col-xs-{{ 12 - (!properties.labelHidden && properties.labelPosition === 'left' ? properties.labelWidth : 0) }}">
  19. <input
  20. type="text"
  21. class="form-control {{ properties.inputType }}"
  22. placeholder="{{ properties.placeholder | uiTranslate }}"
  23. ng-model="properties.value"
  24. name="{{ ctrl.name }}"
  25. sirensiret
  26. ng-required="properties.required"
  27. ng-readonly="properties.readOnly">
  28. <div ng-messages="$form[ctrl.name].$dirty&& $form[ctrl.name].$error" ng-messages-include="forms-generic-errors.html" role="alert">
  29. <div class="text-danger" ng-show="$form[ctrl.name].$error.integer">Cette valeur n'est pas un nombre valide</div>
  30. <div class="text-danger" ng-show="$form[ctrl.name].$error.inputLength">La longueur d'un {{ properties.inputType | uppercase }} est de {{ ctrl.inputLen }} chiffres.</div>
  31. <div class="text-danger" ng-show="$form[ctrl.name].$error.sirenSiretKey">La clé de validation de ce {{ properties.inputType | uppercase }} est invalide</div>
  32. </div>
  33. </div>
  34. </div>
  35. </div>

You will note the following changes: I added some new messages to the ng-messages div and added a "sirensiret" directive. I also added a class to detect input type.

The controller is really simple:

  1. /**
  2.   * The controller is a JavaScript function that augments the AngularJS scope and exposes functions that can be used in the custom widget template
  3.   *
  4.   * Custom widget properties defined on the right can be used as variables in a controller with $scope.properties
  5.   * To use AngularJS standard services, you must declare them in the main function arguments.
  6.   *
  7.   * You can leave the controller empty if you do not need it.
  8.   */
  9. function($scope,$log, widgetNameFactory){
  10.  
  11. this.name = widgetNameFactory.getName($scope.properties.inputType);
  12. this.inputLen =$scope.properties.inputType =='siren' ? 9:14;
  13.  
  14. $log.error ("tiersSirenSiretInput controler is here to serve!");
  15.  
  16. if(!$scope.properties.isBound('value')){
  17. $log.error('the pbInput property named "value" need to be bound to a variable');
  18. }
  19. }

This is almost the standard controller. I just initialize the default length for error messages.

Then I added a custom asset checkSirenSiret.js that add some directives to bonitasoft.ui.extensions:

  1. var app = angular.module ('bonitasoft.ui.extensions',[]);
  2.  
  3. var INTEGER_REGEXP =/^\-?\d+$/;
  4. var SIREN_REGEXP =/^\d{9}$/;
  5. var SIRET_REGEXP =/^\d{14}$/;
  6.  
  7. app.directive('sirensiret',function(){
  8. return{
  9. require:'ngModel',
  10. link:function(scope, elm, attrs, ctrl){
  11.  
  12. function validateSirenSiret(ngModelValue, ngViewValue){
  13.  
  14. // Default is OK.
  15. ctrl.$setValidity('integer',true);
  16. ctrl.$setValidity('inputLength',true);
  17. ctrl.$setValidity('sirenSiretKey',true);
  18.  
  19. // non empty => make additional controls!
  20. if(!ctrl.$isEmpty(ngModelValue)){
  21. // Only numbers
  22. ctrl.$setValidity('integer', INTEGER_REGEXP.test(ngModelValue));
  23.  
  24. // Check length
  25. var isSiren = angular.element(elm).hasClass('siren');
  26. var lengthOk =false;
  27.  
  28. if(isSiren){
  29. lengthOk = SIREN_REGEXP.test(ngModelValue);
  30. }else{
  31. lengthOk = SIRET_REGEXP.test(ngModelValue);
  32. }
  33.  
  34. ctrl.$setValidity('inputLength', lengthOk);
  35.  
  36. // Check key
  37. if(lengthOk){
  38. var nb = ngModelValue.split('');
  39. var i;
  40. var check =0;
  41. var x;
  42.  
  43. for(i =0; i < nb.length; i++){
  44. x = nb[nb.length - i -1]*((i %2)+1);
  45. if(x <10){
  46. check += x;
  47. }else{
  48. check += Math.floor(x /10)+(x %10);
  49. }
  50. }
  51.  
  52. if((check %10)!=0){
  53. ctrl.$setValidity('sirenSiretKey',false);
  54. }
  55. }
  56. }
  57.  
  58. // Return ngModelValue to display it
  59. return ngModelValue;
  60. }
  61.  
  62. ctrl.$parsers.push(validateSirenSiret);
  63. }
  64. };
  65. });

I use $parsers as it is a little bit more flexible than $validators (I would have to write multiple validators, I can use only one parser). Nothing special about this code: first check if the input is a number, then the length, then the Luhn key used to validate the input.

Hope this helps some others.

Can I use a button only to change the value of a variable?

$
0
0

Hi all

I am a newbie at Bonita 7.2.0, and have some doubts.

I only want to change some value, but I don't know how to do it, because I have mandatory to choose one option between, send task, init process, HTTP Request, Post, Get, or Add or Delete from a collection.
I think there is no way, because now I have choosen Send task, and this changes the value, but it shows an warning. Saying Error trying to execute the task. But It makes what I want.
Other way is making this with a radio button and I think it will not show any error, but this isn't what I want to show, isn't my design.

Thank you very much.

Any assistance would be greatly appreciated.

Kind regards,
Héctor

Deploying multiple BDM

$
0
0

Hi,

I'm using Bonita 7.2.2 and I have some process already deployed with BDM. Now I deployed a bar file in my environment and to resolve the process, I deployed bdm.zip exported from some other studio using technical user login. But then I noticed that previously deployed process became unresolved because business data was not available. Is this normal??

Bonita recognizes only last deployed BDM?
If I want previous business data too then how can I manage that?

Thank you in advance.

Starting with Bonita, database and tutorial

$
0
0

Hi everyone,

I have to say I read a few (bonita documentation, tutorials, videos...) but I am still not sure I clearly understood the functioning.
It looks like most of tutorial (videos) I am interested in use Bonita 5 or 6. Tutorials about Bonita 7 often talk about dummy data or Json but rarely against a database.

According to the Bonita BPM 7.0 getting started documentation:

  • design application pages (with dummy data)
  • create the data model
  • create the process definition (diagram, business variables, contracts, business objects)
  • create forms
  • build the application

Ok, but if you already have business data :
- do you have to use the zip package version and modify the database.properties ?
- do you have to follow these steps : https://github.com/Bonitasoft-Community/rest-api-sql-data-source ?
- do you always have to use the 'business data model' ?
- do you always have to create a 'context' variable in the UI Designer ?

Sorry if my questions are simple but more I read and more questions I have ;-)
I see all the potential of the solution, thanks to help me get off on the right foot !

Regards,
Yann

ps : I read french if it is easier to answer

Procurement Example

$
0
0

Procurement Living Application

About

This is an official Living Application example for Bonita 7. It is build using Bonita 7.9.3 and is compatible with any future releases of Bonita 7.

This example demonstrates the following concepts: - Living Application - Forms, pages and custom widgets built in the UI Designer - Process using BDM and contracts

Installation

  1. Download the project .bos file
  2. Import the .bos file in your Bonita Studio (it contains 3 processes: Procurement request, Init sample procurement data and Create supplier)
  3. Deploy all 3 processes: select the process in the project explorer, do a right click and select Deploy
  4. Run the sample data initialization process once and remove it from the Portal (using administration view)
  5. Deploy the two application pages: in the project explorer, select Pages/Forms/Layouts, select a page, do a right click and select Deploy. Do the same for the second page. You can read more about pages from the official documentation.
  6. Deploy the application: in the project explorer, select Application descriptors, select Procurement_application.xml, do a right click and select Deploy. You can read more about applications in the official documentation.
  7. Run the Procurement application by accessing to this URL (the port number may vary):
    http://localhost:8080/bonita/apps/procurement

Note: this simplified version of the Procurement Request process only uses one actor.
The same user can fill a procurement request and approve it himself.

Screenshots

Procurement Living Application

Procurement Living Application

Procurement Request process - Diagram

Procurement Request process - Diagram

Procurement Request process - Fill request form

Procurement Request process - Fill request form

Procurement Request process - Review request form

Procurement Request process - Review request form

Category: 
Licence: 
LGPL v3
Total downloads: 16 069
Version BonitaBPM Version Post date Download Link
7.9.3-1.5 7.x, 7.9.x 2019-Sep-19 Download
1 downloads
Release note
v1.3 for Bonita BPM 7.2 and onward 7.3.x, 7.2.x 2016-Apr-04 Download
6642 downloads
Release note
v1.2.1 for Bonita BPM 7.0.2 to 7.1.x 7.1.x, 7.0.x 2015-Oct-23 Download
2912 downloads
Release note
v1.2 for Bonita BPM 7.0.2 to 7.1.x 7.1.x, 7.0.x 2015-Sep-08 Download
2171 downloads
Release note
v1.1 for Bonita BPM 7.0.2 7.0.x 2015-Aug-21 Download
1983 downloads
Release note
v1.0 for Bonita BPM 7.0.0 7.0.x 2015-Jun-17 Download
2360 downloads
Release note
Downloads: 
375
Viewing all 34 articles
Browse latest View live