Merge branch 'master' of bitbucket.org:jonathanquispe/processmaker

This commit is contained in:
jonathan
2015-02-27 10:33:34 -04:00
3 changed files with 37 additions and 11 deletions

View File

@@ -21,7 +21,7 @@ EOT
/*----------------------------------********---------------------------------*/ /*----------------------------------********---------------------------------*/
CLI::taskName('change-password-hash-method'); CLI::taskName('change-password-hash-method');
CLI::taskDescription(<<<EOT CLI::taskDescription(<<<EOT
Create .po file for the plugin Change password hash method to md5 or sha256 for the specified workspace
EOT EOT
); );
CLI::taskArg('workspace', false); CLI::taskArg('workspace', false);

View File

@@ -1235,7 +1235,7 @@ function WSInformationUser($userUid)
* *
* @method * @method
* *
* Returns the unique ID for the current active session. * Returns the unique ID for the current login session.
* *
* @name WSGetSession * @name WSGetSession
* @label WS Get Session * @label WS Get Session
@@ -1400,7 +1400,7 @@ function WSUnpauseCase ($caseUid, $delIndex, $userUid)
* *
* @method * @method
* *
* Add case note. * Add a case note.
* *
* @name WSAddCaseNote * @name WSAddCaseNote
* @label WS Add case note * @label WS Add case note
@@ -1537,7 +1537,7 @@ function PMFUserList () //its test was successfull
/** /**
* @method * @method
* *
* Add a input document. * Add an Input Document.
* *
* @name PMFAddInputDocument * @name PMFAddInputDocument
* @label PMF Add a input document * @label PMF Add a input document
@@ -1552,7 +1552,7 @@ function PMFUserList () //its test was successfull
* @param string(32) | $caseUid | ID of the case | The unique ID of the case. * @param string(32) | $caseUid | ID of the case | The unique ID of the case.
* @param int | $delIndex | Delegation index of the case | The delegation index of the current task in the case. * @param int | $delIndex | Delegation index of the case | The delegation index of the current task in the case.
* @param string(32) | $taskUid | ID of the task | The unique ID of the task. * @param string(32) | $taskUid | ID of the task | The unique ID of the task.
* @param string(32) | $userUid | ID user | The unique ID of the user who will add a input document. * @param string(32) | $userUid | ID user | The unique ID of the user who will add an input document.
* @param string | $option = "file" | Option | Option, value: "file". * @param string | $option = "file" | Option | Option, value: "file".
* @param string | $file = "path_to_file/myfile.txt" | File, path to file | File, path to file. * @param string | $file = "path_to_file/myfile.txt" | File, path to file | File, path to file.
* @return string | $appDocUid | ID of the application document | Returns ID if it has added the input document successfully; otherwise, returns null or empty if an error occurred. * @return string | $appDocUid | ID of the application document | Returns ID if it has added the input document successfully; otherwise, returns null or empty if an error occurred.
@@ -2061,7 +2061,7 @@ function PMFNewCase ($processId, $userId, $taskId, $variables)
* *
* @method * @method
* *
* Assigns a user to a group. *
* *
* Assigns a user to a group. Note that the logged-in user must have the PM_USERS permission in his/her role to be able to assign a user to a group. * Assigns a user to a group. Note that the logged-in user must have the PM_USERS permission in his/her role to be able to assign a user to a group.
* *
@@ -2466,7 +2466,7 @@ function PMFGetNextAssignedUser ($application, $task, $delIndex = null, $userUid
/** /**
* @method * @method
* *
* Returns a list or user. * Returns the email address of the specified user.
* *
* @name PMFGetUserEmailAddress * @name PMFGetUserEmailAddress
* @label PMF Get User Email Address * @label PMF Get User Email Address
@@ -2845,7 +2845,7 @@ function PMFAddAttachmentToArray($arrayData, $index, $value, $suffix = " Copy({i
/** /**
*@method *@method
* *
* It delete the mask a field. * Removes the currency symbol and thousands separator inserted by a currency mask.
* *
* @name PMFRemoveMask * @name PMFRemoveMask
* @label PMF Remove Mask * @label PMF Remove Mask

View File

@@ -1283,7 +1283,12 @@ class BpmnWorkflow extends Project\Bpmn
$activity = $bwp->getActivity($activityData["ACT_UID"]); $activity = $bwp->getActivity($activityData["ACT_UID"]);
if ($activity["BOU_CONTAINER"] != $activityData["BOU_CONTAINER"]) {
$activity = null;
}
if ($forceInsert || is_null($activity)) { if ($forceInsert || is_null($activity)) {
if ($generateUid) { if ($generateUid) {
//Activity //Activity
@@ -1316,6 +1321,7 @@ class BpmnWorkflow extends Project\Bpmn
$diagram["activities"][$i] = $activityData; $diagram["activities"][$i] = $activityData;
$whiteList[] = $activityData["ACT_UID"]; $whiteList[] = $activityData["ACT_UID"];
} }
$activities = $bwp->getActivities(); $activities = $bwp->getActivities();
@@ -1337,6 +1343,10 @@ class BpmnWorkflow extends Project\Bpmn
$artifact = $bwp->getArtifact($artifactData["ART_UID"]); $artifact = $bwp->getArtifact($artifactData["ART_UID"]);
if ($artifact["BOU_CONTAINER"] != $artifactData["BOU_CONTAINER"]) {
$artifact = null;
}
if ($forceInsert || is_null($artifact)) { if ($forceInsert || is_null($artifact)) {
if ($generateUid) { if ($generateUid) {
//Artifact //Artifact
@@ -1397,6 +1407,10 @@ class BpmnWorkflow extends Project\Bpmn
$gateway = $bwp->getGateway($gatewayData["GAT_UID"]); $gateway = $bwp->getGateway($gatewayData["GAT_UID"]);
if ($gateway["BOU_CONTAINER"] != $gatewayData["BOU_CONTAINER"]) {
$gateway = null;
}
if ($forceInsert || is_null($gateway)) { if ($forceInsert || is_null($gateway)) {
if ($generateUid) { if ($generateUid) {
//Gateway //Gateway
@@ -1471,6 +1485,10 @@ class BpmnWorkflow extends Project\Bpmn
$event = $bwp->getEvent($eventData["EVN_UID"]); $event = $bwp->getEvent($eventData["EVN_UID"]);
if ($event["BOU_CONTAINER"] != $eventData["BOU_CONTAINER"]) {
$event = null;
}
if ($forceInsert || is_null($event)) { if ($forceInsert || is_null($event)) {
if ($generateUid) { if ($generateUid) {
//Event //Event
@@ -1527,6 +1545,10 @@ class BpmnWorkflow extends Project\Bpmn
$dataObject = $bwp->getData($dataObjectData["DAT_UID"]); $dataObject = $bwp->getData($dataObjectData["DAT_UID"]);
if ($dataObject["BOU_CONTAINER"] != $dataObjectData["BOU_CONTAINER"]) {
$dataObject = null;
}
if ($forceInsert || is_null($dataObject)) { if ($forceInsert || is_null($dataObject)) {
if ($generateUid) { if ($generateUid) {
//Data //Data
@@ -1581,9 +1603,13 @@ class BpmnWorkflow extends Project\Bpmn
$participantData = array_change_key_case($participantData, CASE_UPPER); $participantData = array_change_key_case($participantData, CASE_UPPER);
unset($participantData["_EXTENDED"]); unset($participantData["_EXTENDED"]);
$dataObject = $bwp->getParticipant($participantData["PAR_UID"]); $participant = $bwp->getParticipant($participantData["PAR_UID"]);
if ($forceInsert || is_null($dataObject)) { if ($participant["BOU_CONTAINER"] != $participantData["BOU_CONTAINER"]) {
$participant = null;
}
if ($forceInsert || is_null($participant)) {
if ($generateUid) { if ($generateUid) {
//Participant //Participant
@@ -1609,7 +1635,7 @@ class BpmnWorkflow extends Project\Bpmn
} }
$bwp->addParticipant($participantData); $bwp->addParticipant($participantData);
} elseif (! $bwp->isEquals($dataObject, $participantData)) { } elseif (! $bwp->isEquals($participant, $participantData)) {
$bwp->updateParticipant($participantData["PAR_UID"], $participantData); $bwp->updateParticipant($participantData["PAR_UID"], $participantData);
} else { } else {
Util\Logger::log("Update Participant ({$participantData["PAR_UID"]}) Skipped - No changes required"); Util\Logger::log("Update Participant ({$participantData["PAR_UID"]}) Skipped - No changes required");