Llamar informacion del usuario acme?

1
0
-1

Amigos soy nuevo y estoy haciendo un proceso y quiero mostrar informacion de un usuario acme, ciudad, oficina, numero telefonico,
Alguien me podria indicar la sintaxis de llamada del api res externa.

Tambien tengo un problema para sumar datos,
Hice que el usuario ingrese sus gasto multiples como puedo sumar todos los datos, me podrian ayudar quedare muy agradecido ocupo la variable cost que el usuario puede agregar multiples numeros de montos de boletas pero nose como mostrar la suma automaticamente?

Quedare muy agradecido

Tambien me gustaria saber como puedo validar una tarea con una condiconal que si el valor de las boletas son mayores a 50000 pase por otra tarea , y si el texto ingresado es = "operaciones" avance por otra tarea ?

Se que son muchas consultas pero si alguien tiene un poco de tiempo para ayudarme quedare agradecido eternamente

Saludos cordiales .
Dejo mi numero de telefono(+56933833026) por si alguien hace un grupo whassap de bonitasoft donde uno pueda hacer consultas gracias
Soy de chile, santiago

1 answer

1
0
-1
This one is the BEST answer!

I'll try to answer you first question (sorry I can only write in English but maybe Google translate can help ;-) ). For the other question I suggest you create another post (one for each question) this help other users finding answers to their questions.

If I understand correctly your question you want to display in a form the information about the user currently logged in in Bonita Portal.

To do so you need to:

  • create a new form variable
  • set the name of the new variable. E.g.: sessionInfo
  • select the type: External API
  • set the API URL: ../API/system/session/unused-id
  • create a second form variable
  • name: userInfo
  • type: External API
  • API URL: ../API/identity/user/{{sessionInfo.user_id}}
  • Add an input widget
  • Set widget value for example to: userInfo.firstname

Hope that helps.

Based on your additional information I understand that you want to display information about the user of submitted a task in the process. You can achieve that in your form using form variables that will perform API calls. The first call will search for the information about the finished task (archived) based on the current process instance id and on the task. The second API call will retrieve the user information based on the user id that is part of archived task information.

I create process to demonstrate that. You can download it and import it in your Studio.

Comments

Submitted by desparzagophone... on Tue, 09/18/2018 - 20:03

Muy amable por responder, probaré la solución esta semana ya que estamos disfrutando las fiestas patrias de chile y le escribire para contarle si lo pude hacer muchas gracias amigo, muy amable

Submitted by desparzagophone... on Thu, 09/20/2018 - 17:15

Quiero mostrar informacion del usuario que mando el formulario, me podria ayudar con eso

Submitted by antoine.mottier on Tue, 10/09/2018 - 12:25

Do you mean that you want to display information about the user who submit a previous task or information about the user that will submit the task associated with the current form?

Maybe you can share a simple process that illustrate your use case. You can export your process from the Studio using the Export button and then share the .bos file using for example Google Drive or Dropbox.

Thanks

Submitted by desparzagophone... on Thu, 10/11/2018 - 03:15

Si deseo rescatar información del usuario que envío la tarea, como la ciudad, estado, dirección, correo,número obtener esa información de su perfil

Gracias

Submitted by antoine.mottier on Thu, 10/11/2018 - 09:52

I update my answer based on the additional information you provide.

Submitted by desparzagophone... on Thu, 10/11/2018 - 11:59

Muchas gracias lo probaré en la semana, en realidad tengo muchas dudas me podría ayudar con unas preguntas que realice y aún no me responden ?

Por ejemplo en el formulario el usuario que envía la tarea mueve ingresar un valor en un input pero también puede agregar más Campos valor con un botón agregar como puedo sumar todos los valores la variable valor es múltiple y está creada en el contrato gracias

Submitted by antoine.mottier on Mon, 10/15/2018 - 10:47

For other questions please create other posts on the community forum.
If you don't receive any answer please be patient and remember this is a community forum. Everyone do is best to provide help but there is no SLA.

Also I might recommend that you watch Bonita Camp video in Spanish (Spanish version is a little bit outdated I recommend to watch the English one if possible).

Even better you can register for Bonita official training including certification delivered by Bonitasoft.

Submitted by desparzagophone... on Thu, 11/22/2018 - 16:00

Dear in the example that is in English, the process to enter multiple surrenders is created, but how to add the multiple surrenders that can be given to any council or help?

Submitted by antoine.mottier on Thu, 11/22/2018 - 16:30

Can you create a new question for this new topic? Also you can ask it in Spanish I work with someone that can understand it and answer in Spanish. Thanks.

Submitted by desparzagophone... on Thu, 11/22/2018 - 16:56

la creo enseguida en el foto gracias por responder

Submitted by desparzagophone... on Mon, 11/26/2018 - 13:15

Estimado antoine.mottie ya cree la pregunta con el nuevo tema, pero aun no tengo respuesta.

Solo quiero sumar integer múltiples que el usuario puede agregar en el ui designer, pero al crear la variable suma en uidesigner nose llamar la variables $item.cost tampoco se como sumar todos los datos ingresados ya que el usuario puede ingresar multiples $item.cost..

favor su ayuda

Submitted by antoine.mottier on Mon, 11/26/2018 - 13:56

This is a community forum so there is no service-level agreement. Please avoid to post multiple times in order to get an answer faster. If this is urgent for you you might want consider reaching out to Bonitasoft (contact us form on www.bonitasoft.com) for professional services and support.

I'll try to have a look at your question soon.

Submitted by morongarciakaty... on Mon, 04/15/2019 - 18:24

hola he usado
crear una nueva variable de formulario
establecer el nombre de la nueva variable. Ej .: sessionInfo
seleccione el tipo: API externa
establezca la URL de la API: ../API/system/session/unused-id
crear una segunda variable de forma
nombre: userInfo
tipo: API externa
URL de la API: ../API/identity/user/{{sessionInfo.user_id}}
Añadir un widget de entrada
Establezca el valor del widget, por ejemplo, en: userInfo.firstname y todo bien pero en otra tarea deberia jalar la informacion de ese mismo usuario pero me sale en blanco
mostrar información sobre el usuario que envió una tarea anterior

Submitted by delphine.coille on Tue, 04/23/2019 - 11:23

Hola morongarciakaty, puedes compatir tu .bos? Voy a revisarlo para poder ayuadarte. Gracias

Submitted by morongarciakaty... on Tue, 04/23/2019 - 19:26

ok me puedes pasar tu correo porfa para enviartelo
gracias

Submitted by delphine.coille on Wed, 04/24/2019 - 08:44

Como esta puesto en los FAQ de la comunidad, es mejor si me lo puedes pasar por un Dropbox o algo así. Gracias. Delphine

Submitted by morongarciakaty... on Wed, 04/24/2019 - 15:51

https://drive.google.com/file/d/1yoqhAxEyXuPWlggVXcYHVZpERHIF2ytZ/view?usp=sharing

hola ahi te paso el archivo segui los paso:
To do so you need to:

create a new form variable
set the name of the new variable. E.g.: sessionInfo
select the type: External API
set the API URL: ../API/system/session/unused-id
create a second form variable
name: userInfo
type: External API
API URL: ../API/identity/user/{{sessionInfo.user_id}}
Add an input widget
Set widget value for example to: userInfo.firstname

y todo bien si me jala en el primer formulario el nombre del usuario pero luego en un segundo formulario que es de aprobacion no me esta jalando el nombre del usuario ahi esta el problema
el diagrama 41 es el cual estoy trabjando soy nueva en bonita soft te agradeceria que me puedas ayudar

Submitted by morongarciakaty... on Wed, 04/24/2019 - 16:11
Submitted by delphine.coille on Thu, 04/25/2019 - 17:44

Hola, revise tu archivo pero hay un monton de procesos. Me puedes indicar en que proceso (y que versión del proceso) tienes el problema? Gracias. Delphine

Submitted by morongarciakaty... on Thu, 04/25/2019 - 21:42

hola diagrama 41 en la tarea validar cotizacion me deberia mostar el usuario tal como te explique arriba ahi puse un word con imagenes

Notifications