Skip to content

Commit

Permalink
Add Default value in Configs
Browse files Browse the repository at this point in the history
  • Loading branch information
marciojv committed Jul 10, 2021
1 parent faa1a7f commit 8dccd02
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 6 deletions.
14 changes: 8 additions & 6 deletions Lime2Camunda.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,22 +13,26 @@ class Lime2Camunda extends PluginBase {
'urlrestcamunda' => array(
'type' => 'string',
'label' => 'REST URL Camunda',
'help' => 'Informe a URL do Engine-Rest do Camunda Server. Exemplo: http://localhost:8080/engine-rest/'
'help' => 'Informe a URL do Engine-Rest do Camunda Server. Exemplo: http://localhost:8080/engine-rest/',
'default' => 'http://localhost:8080/engine-rest/'
),
'usercamunda' => array(
'type' => 'string',
'label' => 'Usuário no Camunda',
'help' => 'Informe e usuario de login no camunda com suporta a instânciar processos. exemplo: demo'
'help' => 'Informe e usuario de login no camunda com suporta a instânciar processos. exemplo: demo',
'default' => 'demo'
),
'passcamunda' => array(
'type' => 'string',
'label' => 'Senha do Usuário Camunda',
'help' => 'informe a senha do usuário que ira inst6anciar processos. exemplo: demo'
'help' => 'informe a senha do usuário que ira inst6anciar processos. exemplo: demo',
'default' => 'demo'
),
'debugresponse' => array(
'type' => 'boolean',
'label' => 'Debug no final do Questionário?',
'help' => 'Se habilitado permitirá o respondente do questionário visualizar todos dados enviados para o camunda inclusive o retorno do Start Process'
'help' => 'Se habilitado permitirá o respondente do questionário visualizar todos dados enviados para o camunda inclusive o retorno do Start Process',
'default' => TRUE
),
);

Expand Down Expand Up @@ -98,14 +102,12 @@ public function StartProcessCamunda()
'Authorization:' . $basicAuth64)
);


$resultCamunda = curl_exec($ch);
if ($debugresponse) {
$event->getContent($this)
->addContent('Resultado do EndPoint da Camunda com numero da instância gerada:<br/><pre>' . print_r($resultCamunda, true) . '</pre>');
}


$resultCamundaArray = json_decode($resultCamunda);
foreach ($resultCamundaArray as $name => $value)
{
Expand Down
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@ passcamunda = Your password in Camunda Server. Sample: demo
debugresponse = Displays a debug screen at the end of the survey if TRUE.


### New features
- Add user and password in survey
- Add send to camunda in question parameters.

## Configs Surveys

Expand Down

0 comments on commit 8dccd02

Please sign in to comment.