How can I send a URL of a pool is another? help me please. thank you

1
0
-1

How can I send a URL of a pool is another? help me please. thank you.

Comments

Submitted by Sean McP on Thu, 03/03/2016 - 15:48

is this a repeated question?...it won't get answered any quicker...

Submitted by azouzisameh on Thu, 03/03/2016 - 16:05

so i expect your answer Mr Sean? thank you very match.

Submitted by Sean McP on Thu, 03/03/2016 - 19:49

With respect...

I work for myself, I do not work for Bonitasoft, The community is for people who give up their own time to answer questions. We do our best.

Asking the same question 3 or 4 times will NOT help you get an answer and quicker...

That being said.

Pools do not have URL's so it is not possible to send the URL of a pool to another. You have to be very specific about what you want to do.

The community will help, but only if the question is reasonable, and answerable. This question as it is is not...

Again with respect...

regards

Submitted by azouzisameh on Thu, 03/03/2016 - 20:32

Lorsque je crée un document, alors ce document est de type url ou un fichier. Donc dans le formulaire il s'affiche deux bouton radio, lorsque je couche fichier ça marche sachant que j'ai utilisé la démarche suivant qui se trouve dans la documentation de bonita:
A document is defined in a pool. You can map documents to other pools similarly to how you map variables.
To map a document when using a call activity:
1. Define a document in the main process, for example "mainDoc".
2. Define a document in the subprocess, for example "subDoc".
3. In the call activity of the main process, add a task variable of type long (for example called "docId") that will contain the id of the instance of mainDoc. Set the default value of docId with the following code:
apiAccessor.getProcessAPI().getLastDocument(processInstanceId, "mainDoc").getId();
4. In the subprocess, add a pool-level variable of type long (for example called sub_docId).
5. Define the variable mapping in the call activity so that docId in the call activity is mapped to sub_docId in the subprocess.
6. In the subprocess, as the first task add an automatic task that will get the mainDoc, create a DocumentValue object with the content of mainDoc, and use it to update the content of subDoc. To do this, define an operation in the automatic task as follows:
a. In the first field, select subDoc.
b. Set the operator type to Set document.
c. Open the expression editor for the second field and create a script expression with the following content:
import org.bonitasoft.engine.bpm.document.Document;
import org.bonitasoft.engine.bpm.document.DocumentValue;

Document doc=apiAccessor.getProcessAPI().getDocument(sub_docId);
DocumentValue docValue=new DocumentValue(apiAccessor.getProcessAPI().getDocumentContent(doc.getContentStorageId()), doc.getContentMimeType(), doc.getContentFileName());
return docValue;

Mais ci je couche URL ça marche pas? que ce que peux modifier pour arriver a récupéré cet adresse dans la deuxième pool? j’espère que ma question est claire maintenant.
Cordialement.

No answers yet.
Notifications