Merged colosa/processmaker into master

This commit is contained in:
Quenta Ronald
2015-02-10 08:59:43 -04:00
5 changed files with 359 additions and 397 deletions

View File

@@ -2,7 +2,7 @@ msgid ""
msgstr ""
"Project-Id-Version: ProcessMaker 3.0\n"
"POT-Creation-Date: \n"
"PO-Revision-Date: 2015-01-20 18:07:02\n"
"PO-Revision-Date: 2015-02-06 16:16:09\n"
"Last-Translator: \n"
"Language-Team: Colosa Developers Team <developers@colosa.com>\n"
"MIME-Version: 1.0\n"
@@ -17791,6 +17791,66 @@ msgstr "The event with {0}: {1} does not is registered."
msgid "The WebEntry-Event title with {0}: \"{1}\" already exists."
msgstr "The WebEntry-Event title with {0}: \"{1}\" already exists."
# TRANSLATION
# LABEL/ID_CASE_STOPPED_TRIGGER
#: LABEL/ID_CASE_STOPPED_TRIGGER
msgid "The case has not stopped due to its trigger."
msgstr "The case has not stopped due to its trigger."
# TRANSLATION
# LABEL/ID_TRANSLATION_NOT_WRITEABLE
#: LABEL/ID_TRANSLATION_NOT_WRITEABLE
msgid "The translation file is not writable. <br/>Please give write permission to file:"
msgstr "The translation file is not writable. <br/>Please give write permission to file:"
# TRANSLATION
# LABEL/ID_MAFE_TRANSLATION_NOT_WRITEABLE
#: LABEL/ID_MAFE_TRANSLATION_NOT_WRITEABLE
msgid "The mafe translation file is not writable. <br/>Please give write permission to file:"
msgstr "The mafe translation file is not writable. <br/>Please give write permission to file:"
# TRANSLATION
# LABEL/ID_TRANSLATIONS_DIRECTORY
#: LABEL/ID_TRANSLATIONS_DIRECTORY
msgid "Translations Directory"
msgstr "Translations Directory"
# TRANSLATION
# LABEL/ID_MAFE_TRANSLATION_DIRECTORY
#: LABEL/ID_MAFE_TRANSLATION_DIRECTORY
msgid "Mafe Translation Directory"
msgstr "Mafe Translation Directory"
# TRANSLATION
# LABEL/ID_MESSAGE_TYPE_DOES_NOT_EXIST
#: LABEL/ID_MESSAGE_TYPE_DOES_NOT_EXIST
msgid "The Message Type with {0}: {1} does not exist."
msgstr "The Message Type with {0}: {1} does not exist."
# TRANSLATION
# LABEL/ID_MESSAGE_TYPE_NAME_ALREADY_EXISTS
#: LABEL/ID_MESSAGE_TYPE_NAME_ALREADY_EXISTS
msgid "The Message Type Name with {0}: \"{1}\" already exists."
msgstr "The Message Type Name with {0}: \"{1}\" already exists."
# TRANSLATION
# LABEL/ID_MESSAGE_TYPE_NAME_VARIABLE_EXISTS
#: LABEL/ID_MESSAGE_TYPE_NAME_VARIABLE_EXISTS
msgid "The name of the variable exists."
msgstr "The name of the variable exists."
# TRANSLATION
# LABEL/ID_MESSAGE_TYPE_VARIABLE_DOES_NOT_EXIST
#: LABEL/ID_MESSAGE_TYPE_VARIABLE_DOES_NOT_EXIST
msgid "The Variable with {0}: {1} does not exist."
msgstr "The Variable with {0}: {1} does not exist."
# TRANSLATION
# LABEL/ID_MESSAGE_TYPE_VARIABLE_NAME_ALREADY_EXISTS
#: LABEL/ID_MESSAGE_TYPE_VARIABLE_NAME_ALREADY_EXISTS
msgid "The Variable Name with {0}: \"{1}\" already exists."
msgstr "The Variable Name with {0}: \"{1}\" already exists."
# additionalTables/additionalTablesData.xml?ADD_TAB_NAME
# additionalTables/additionalTablesData.xml
#: text - ADD_TAB_NAME
@@ -21706,14 +21766,14 @@ msgstr "Task"
# cases/cases_Scheduler_List.xml?SCH_TIME_NEXT_RUN
# cases/cases_Scheduler_List.xml
#: text - SCH_TIME_NEXT_RUN
msgid "Next execution time"
msgstr "Next execution time"
msgid "Time next run"
msgstr "Time next run"
# cases/cases_Scheduler_List.xml?SCH_LAST_RUN_TIME
# cases/cases_Scheduler_List.xml
#: text - SCH_LAST_RUN_TIME
msgid "Last execution time"
msgstr "Last execution time"
msgid "Last run time"
msgstr "Last run time"
# cases/cases_Scheduler_List.xml?SCH_STATUS_LNK
# cases/cases_Scheduler_List.xml
@@ -22305,13 +22365,13 @@ msgstr "User"
# cases/cases_TaskDetails.xml?INIT_DATE
# cases/cases_TaskDetails.xml
#: text - INIT_DATE
#: date - INIT_DATE
msgid "[cases/cases_TaskDetails.xml?INIT_DATE] Init Date"
msgstr "Init Date"
# cases/cases_TaskDetails.xml?DUE_DATE
# cases/cases_TaskDetails.xml
#: text - DUE_DATE
#: date - DUE_DATE
msgid "Due date"
msgstr "Due date"
@@ -23683,30 +23743,6 @@ msgstr "Encode"
msgid "[dbConnections/dbConnections_Edit.xml?DBS_ENCODE-]"
msgstr "..."
# dbConnections/dbConnections_Edit.xml?DBS_CONNECTION_TYPE
# dbConnections/dbConnections_Edit.xml
#: dropdown - DBS_CONNECTION_TYPE
msgid "Select Connection Type"
msgstr "Select Connection Type"
# dbConnections/dbConnections_Edit.xml?DBS_CONNECTION_TYPE-NORMAL
# dbConnections/dbConnections_Edit.xml
#: dropdown - DBS_CONNECTION_TYPE - NORMAL
msgid "[dbConnections/dbConnections_Edit.xml?DBS_CONNECTION_TYPE-NORMAL]"
msgstr "Normal"
# dbConnections/dbConnections_Edit.xml?DBS_CONNECTION_TYPE-TNS
# dbConnections/dbConnections_Edit.xml
#: dropdown - DBS_CONNECTION_TYPE - TNS
msgid "[dbConnections/dbConnections_Edit.xml?DBS_CONNECTION_TYPE-TNS]"
msgstr "TNS"
# dbConnections/dbConnections_Edit.xml?DBS_TNS
# dbConnections/dbConnections_Edit.xml
#: text - DBS_TNS
msgid "TNS"
msgstr "TNS"
# dbConnections/dbConnections_Edit.xml?DBS_SERVER
# dbConnections/dbConnections_Edit.xml
#: text - DBS_SERVER
@@ -23785,30 +23821,6 @@ msgstr "Encode"
msgid "[dbConnections/dbConnections_New.xml?DBS_ENCODE-]"
msgstr "..."
# dbConnections/dbConnections_New.xml?DBS_CONNECTION_TYPE
# dbConnections/dbConnections_New.xml
#: dropdown - DBS_CONNECTION_TYPE
msgid "[dbConnections/dbConnections_New.xml?DBS_CONNECTION_TYPE] Select Connection Type"
msgstr "Select Connection Type"
# dbConnections/dbConnections_New.xml?DBS_CONNECTION_TYPE-NORMAL
# dbConnections/dbConnections_New.xml
#: dropdown - DBS_CONNECTION_TYPE - NORMAL
msgid "[dbConnections/dbConnections_New.xml?DBS_CONNECTION_TYPE-NORMAL]"
msgstr "Normal"
# dbConnections/dbConnections_New.xml?DBS_CONNECTION_TYPE-TNS
# dbConnections/dbConnections_New.xml
#: dropdown - DBS_CONNECTION_TYPE - TNS
msgid "[dbConnections/dbConnections_New.xml?DBS_CONNECTION_TYPE-TNS]"
msgstr "TNS"
# dbConnections/dbConnections_New.xml?DBS_TNS
# dbConnections/dbConnections_New.xml
#: text - DBS_TNS
msgid "[dbConnections/dbConnections_New.xml?DBS_TNS] TNS"
msgstr "TNS"
# dbConnections/dbConnections_New.xml?DBS_SERVER
# dbConnections/dbConnections_New.xml
#: text - DBS_SERVER
@@ -28037,24 +28049,6 @@ msgstr "Copy"
msgid "[outputdocs/outputdocs_Properties.xml?OUT_DOC_PDF_SECURITY_PERMISSIONS-annot-forms]"
msgstr "Forms"
# outputdocs/outputdocs_Properties.xml?OUT_DOC_OPEN_TYPE
# outputdocs/outputdocs_Properties.xml
#: dropdown - OUT_DOC_OPEN_TYPE
msgid "By clicking on the generated file link"
msgstr "By clicking on the generated file link"
# outputdocs/outputdocs_Properties.xml?OUT_DOC_OPEN_TYPE-0
# outputdocs/outputdocs_Properties.xml
#: dropdown - OUT_DOC_OPEN_TYPE - 0
msgid "[outputdocs/outputdocs_Properties.xml?OUT_DOC_OPEN_TYPE-0]"
msgstr "Download the file"
# outputdocs/outputdocs_Properties.xml?OUT_DOC_OPEN_TYPE-1
# outputdocs/outputdocs_Properties.xml
#: dropdown - OUT_DOC_OPEN_TYPE - 1
msgid "[outputdocs/outputdocs_Properties.xml?OUT_DOC_OPEN_TYPE-1]"
msgstr "Open the file"
# outputdocs/outputdocs_Properties.xml?BTN_CANCEL
# outputdocs/outputdocs_Properties.xml
#: button - BTN_CANCEL
@@ -28985,12 +28979,6 @@ msgstr "Cases Notes"
msgid "[processes/processes_EditObjectPermission.xml?OP_OBJ_TYPE-MSGS_HISTORY]"
msgstr "Messages History"
# processes/processes_EditObjectPermission.xml?OP_OBJ_TYPE-SUMMARY_FORM
# processes/processes_EditObjectPermission.xml
#: dropdown - OP_OBJ_TYPE - SUMMARY_FORM
msgid "[processes/processes_EditObjectPermission.xml?OP_OBJ_TYPE-SUMMARY_FORM]"
msgstr "Summary Form"
# processes/processes_EditObjectPermission.xml?ALL
# processes/processes_EditObjectPermission.xml
#: dropdown - ALL
@@ -29591,12 +29579,6 @@ msgstr "Cases Notes"
msgid "[processes/processes_NewObjectPermission.xml?OP_OBJ_TYPE-MSGS_HISTORY]"
msgstr "Messages History"
# processes/processes_NewObjectPermission.xml?OP_OBJ_TYPE-SUMMARY_FORM
# processes/processes_NewObjectPermission.xml
#: dropdown - OP_OBJ_TYPE - SUMMARY_FORM
msgid "[processes/processes_NewObjectPermission.xml?OP_OBJ_TYPE-SUMMARY_FORM]"
msgstr "Summary Form"
# processes/processes_NewObjectPermission.xml?ALL
# processes/processes_NewObjectPermission.xml
#: dropdown - ALL

View File

@@ -7356,7 +7356,7 @@ SELECT 'LABEL','ID_EMAIL_SERVER_TITLE_TESTING','en','Testing Email Server','2014
UNION ALL
SELECT 'LABEL','ID_EMAIL_SERVER_RESULT_TESTING','en','Result Testing Email Server','2014-12-24'
UNION ALL
SELECT 'LABEL','ID_EMAIL_SERVER_TITLE','en','Email Servers','2014-12-24'
SELECT 'LABEL','ID_EMAIL_SERVER_TITLE','en','Email Servers','2015-01-21'
UNION ALL
SELECT 'LABEL','ID_EMAIL_SERVER_THIS_CONFIGURATION_IS_DEFAULT','en','Set that this configuration is the default','2014-12-24'
UNION ALL
@@ -7389,6 +7389,26 @@ SELECT 'LABEL','ID_EVENT_NOT_IS_START_EVENT','en','The event with {0}: {1} not i
SELECT 'LABEL','ID_WEB_ENTRY_EVENT_DOES_NOT_IS_REGISTERED','en','The event with {0}: {1} does not is registered.','2015-01-16'
UNION ALL
SELECT 'LABEL','ID_WEB_ENTRY_EVENT_TITLE_ALREADY_EXISTS','en','The WebEntry-Event title with {0}: "{1}" already exists.','2015-01-16'
UNION ALL
SELECT 'LABEL','ID_CASE_STOPPED_TRIGGER','en','The case has not stopped due to its trigger.','2015-01-29'
UNION ALL
SELECT 'LABEL','ID_TRANSLATION_NOT_WRITEABLE','en','The translation file is not writable. <br/>Please give write permission to file:','2015-01-31'
UNION ALL
SELECT 'LABEL','ID_MAFE_TRANSLATION_NOT_WRITEABLE','en','The mafe translation file is not writable. <br/>Please give write permission to file:','2015-01-31'
UNION ALL
SELECT 'LABEL','ID_TRANSLATIONS_DIRECTORY','en','Translations Directory','2015-01-31'
UNION ALL
SELECT 'LABEL','ID_MAFE_TRANSLATION_DIRECTORY','en','Mafe Translation Directory','2015-01-31'
UNION ALL
SELECT 'LABEL','ID_MESSAGE_TYPE_DOES_NOT_EXIST','en','The Message Type with {0}: {1} does not exist.','2015-02-05'
UNION ALL
SELECT 'LABEL','ID_MESSAGE_TYPE_NAME_ALREADY_EXISTS','en','The Message Type Name with {0}: "{1}" already exists.','2015-02-05'
UNION ALL
SELECT 'LABEL','ID_MESSAGE_TYPE_NAME_VARIABLE_EXISTS','en','The name of the variable exists.','2015-02-05'
UNION ALL
SELECT 'LABEL','ID_MESSAGE_TYPE_VARIABLE_DOES_NOT_EXIST','en','The Variable with {0}: {1} does not exist.','2015-02-05'
UNION ALL
SELECT 'LABEL','ID_MESSAGE_TYPE_VARIABLE_NAME_ALREADY_EXISTS','en','The Variable Name with {0}: "{1}" already exists.','2015-02-05'
;
INSERT INTO ISO_LOCATION ([IC_UID],[IL_UID],[IL_NAME],[IL_NORMAL_NAME],[IS_UID])

View File

@@ -4409,7 +4409,7 @@ INSERT INTO TRANSLATION (TRN_CATEGORY,TRN_ID,TRN_LANG,TRN_VALUE,TRN_UPDATE_DATE
( 'LABEL','ID_EMAIL_SERVER_EDIT','en','Edit Email Server','2014-12-24') ,
( 'LABEL','ID_EMAIL_SERVER_TITLE_TESTING','en','Testing Email Server','2014-12-24') ,
( 'LABEL','ID_EMAIL_SERVER_RESULT_TESTING','en','Result Testing Email Server','2014-12-24') ,
( 'LABEL','ID_EMAIL_SERVER_TITLE','en','Email Servers','2014-12-24') ,
( 'LABEL','ID_EMAIL_SERVER_TITLE','en','Email Servers','2015-01-21') ,
( 'LABEL','ID_EMAIL_SERVER_THIS_CONFIGURATION_IS_DEFAULT','en','Set that this configuration is the default','2014-12-24') ,
( 'LABEL','ID_EMAIL_SERVER_TESTING','en','Testing Email Server','2014-12-24') ,
( 'LABEL','ID_EMAIL_SERVER_CONFIRM_DELETE','en','Do you want to delete the Email Server?','2014-12-24') ,
@@ -4426,7 +4426,17 @@ INSERT INTO TRANSLATION (TRN_CATEGORY,TRN_ID,TRN_LANG,TRN_VALUE,TRN_UPDATE_DATE
( 'LABEL','ID_EVENT_NOT_IS_START_EVENT','en','The event with {0}: {1} not is "Start Event".','2015-01-13') ,
( 'LABEL','ID_WEB_ENTRY_EVENT_DOES_NOT_IS_REGISTERED','en','The event with {0}: {1} does not is registered.','2015-01-16') ,
( 'LABEL','ID_WEB_ENTRY_EVENT_TITLE_ALREADY_EXISTS','en','The WebEntry-Event title with {0}: "{1}" already exists.','2015-01-16') ;
( 'LABEL','ID_WEB_ENTRY_EVENT_TITLE_ALREADY_EXISTS','en','The WebEntry-Event title with {0}: "{1}" already exists.','2015-01-16') ,
( 'LABEL','ID_CASE_STOPPED_TRIGGER','en','The case has not stopped due to its trigger.','2015-01-29') ,
( 'LABEL','ID_TRANSLATION_NOT_WRITEABLE','en','The translation file is not writable. <br/>Please give write permission to file:','2015-01-31') ,
( 'LABEL','ID_MAFE_TRANSLATION_NOT_WRITEABLE','en','The mafe translation file is not writable. <br/>Please give write permission to file:','2015-01-31') ,
( 'LABEL','ID_TRANSLATIONS_DIRECTORY','en','Translations Directory','2015-01-31') ,
( 'LABEL','ID_MAFE_TRANSLATION_DIRECTORY','en','Mafe Translation Directory','2015-01-31') ,
( 'LABEL','ID_MESSAGE_TYPE_DOES_NOT_EXIST','en','The Message Type with {0}: {1} does not exist.','2015-02-05') ,
( 'LABEL','ID_MESSAGE_TYPE_NAME_ALREADY_EXISTS','en','The Message Type Name with {0}: "{1}" already exists.','2015-02-05') ,
( 'LABEL','ID_MESSAGE_TYPE_NAME_VARIABLE_EXISTS','en','The name of the variable exists.','2015-02-05') ,
( 'LABEL','ID_MESSAGE_TYPE_VARIABLE_DOES_NOT_EXIST','en','The Variable with {0}: {1} does not exist.','2015-02-05') ,
( 'LABEL','ID_MESSAGE_TYPE_VARIABLE_NAME_ALREADY_EXISTS','en','The Variable Name with {0}: "{1}" already exists.','2015-02-05') ;
INSERT INTO ISO_LOCATION (IC_UID,IL_UID,IL_NAME,IL_NORMAL_NAME,IS_UID) VALUES
('AD','','',' ','') ,
@@ -59798,4 +59808,3 @@ INSERT INTO DASHLET_INSTANCE (DAS_INS_UID,DAS_UID,DAS_INS_OWNER_TYPE,DAS_INS_OWN
INSERT INTO CONFIGURATION (CFG_UID,OBJ_UID,CFG_VALUE,PRO_UID,USR_UID,APP_UID) VALUES
('ENVIRONMENT_SETTINGS','','a:1:{s:18:"directoryStructure";i:2;}','','','');

View File

@@ -238,7 +238,7 @@ class BpmnWorkflow extends Project\Bpmn
$event = \BpmnEventPeer::retrieveByPK($data["FLO_ELEMENT_ORIGIN"]);
// setting as start task
if ($event && $event->getEvnType() == "START") {
if (!is_null($event) && $event->getEvnType() == "START" && $event->getEvnMarker() == "EMPTY") {
$this->wp->setStartTask($data["FLO_ELEMENT_DEST"]);
}
@@ -284,7 +284,7 @@ class BpmnWorkflow extends Project\Bpmn
) {
$event = \BpmnEventPeer::retrieveByPK($flowBefore->getFloElementOrigin());
if (!is_null($event) && $event->getEvnType() == "START") {
if (!is_null($event) && $event->getEvnType() == "START" && $event->getEvnMarker() == "EMPTY") {
//Remove as start task
$this->wp->setStartTask($flowBefore->getFloElementDest(), false);
@@ -358,7 +358,7 @@ class BpmnWorkflow extends Project\Bpmn
if (is_null($bpmnFlow)) {
$event = \BpmnEventPeer::retrieveByPK($flow->getFloElementOrigin());
if (!is_null($event) && $event->getEvnType() == "START") {
if (!is_null($event) && $event->getEvnType() == "START" && $event->getEvnMarker() == "EMPTY") {
$activity = \BpmnActivityPeer::retrieveByPK($flow->getFloElementDest());
if (!is_null($activity)) {
@@ -390,7 +390,7 @@ class BpmnWorkflow extends Project\Bpmn
switch ($flow->getFloElementOriginType()) {
case "bpmnActivity":
switch ($flow->getFloElementDestType()) {
// activity->activity
//Activity1 -> Activity2
case "bpmnActivity":
$this->wp->removeRouteFromTo($flow->getFloElementOrigin(), $flow->getFloElementDest());
break;
@@ -411,12 +411,12 @@ class BpmnWorkflow extends Project\Bpmn
$eventUid = parent::addEvent($data);
$event = \BpmnEventPeer::retrieveByPK($eventUid);
// create case scheduler
//Delete case scheduler
if ($event && $event->getEvnMarker() == "TIMER" && $event->getEvnType() == "START") {
$this->wp->addCaseScheduler($eventUid);
}
// create web entry
//Delete WebEntry-Event
if ($event && $event->getEvnMarker() == "MESSAGE" && $event->getEvnType() == "START") {
$this->wp->addWebEntry($eventUid);
}
@@ -782,11 +782,13 @@ class BpmnWorkflow extends Project\Bpmn
$result = array();
$projectData['prj_uid'] = $prjUid;
$bwp = BpmnWorkflow::load($prjUid);
$projectRecord = array_change_key_case($projectData, CASE_UPPER);
$bwp->update($projectRecord);
////
/*
* Diagram's Laneset Handling
*/
@@ -831,7 +833,6 @@ class BpmnWorkflow extends Project\Bpmn
}
}
////
/*
* Diagram's Lane Handling
*/
@@ -1184,7 +1185,6 @@ class BpmnWorkflow extends Project\Bpmn
}
}
////
/*
* Diagram's Participant Handling
*/
@@ -1241,7 +1241,6 @@ class BpmnWorkflow extends Project\Bpmn
}
}
/*
* Diagram's Flows Handling
*/
@@ -1252,16 +1251,23 @@ class BpmnWorkflow extends Project\Bpmn
// if it is a new flow record
if ($forceInsert || ($generateUid && !\BpmnFlow::exists($flowData["FLO_UID"]))) {
$oldFloUid = $flowData["FLO_UID"];
$uidOld = $flowData["FLO_UID"];
$flowData["FLO_UID"] = Util\Common::generateUID();
$result[] = array("object" => "flow", "new_uid" => $flowData["FLO_UID"], "old_uid" => $oldFloUid);
$result[] = array(
"object" => "flow",
"old_uid" => $uidOld,
"new_uid" => $flowData["FLO_UID"]
);
$mappedUid = self::mapUid($flowData["FLO_ELEMENT_ORIGIN"], $result);
if ($mappedUid !== false) {
$flowData["FLO_ELEMENT_ORIGIN"] = $mappedUid;
}
$mappedUid = self::mapUid($flowData["FLO_ELEMENT_DEST"], $result);
if ($mappedUid !== false) {
$flowData["FLO_ELEMENT_DEST"] = $mappedUid;
}

File diff suppressed because it is too large Load Diff