@@ -215,7 +215,7 @@ exports.missingProperty = function missingProperty(propertyName) {
215
215
* @description A class definition is missing
216
216
*/
217
217
exports . missingImplementation = function missingImplementation ( name ) {
218
- getLogger ( ) . warn ( "schema '" + name + "' is missing. " ) ;
218
+ getLogger ( ) . warn ( "schema '" + name + "' is missing" ) ;
219
219
} ;
220
220
221
221
/**
@@ -364,9 +364,9 @@ exports.invalidDocumentOnDbInsert = function invalidDocumentOnDbInsert(
364
364
getLogger ( ) . warn (
365
365
"invalid document '" +
366
366
JSON . stringify ( doc ) . replace ( / , / g, ', ' ) +
367
- "' on an insert operation on collection '" +
367
+ "' ( collection '" +
368
368
collectionName +
369
- "'"
369
+ "' ) "
370
370
) ;
371
371
} ;
372
372
@@ -387,9 +387,9 @@ exports.invalidPropertyTypeOnDbUpdate = function invalidPropertyTypeOnDbUpdate(
387
387
type
388
388
) {
389
389
getLogger ( ) . warn (
390
- "invalid type when trying to update the property '" +
390
+ "invalid type for the property '" +
391
391
propertyName +
392
- "' of document '" +
392
+ "' of the document '" +
393
393
id +
394
394
"' (collection '" +
395
395
collectionName +
@@ -416,11 +416,11 @@ exports.unknownPropertyOnDbUpdate = function unknownPropertyOnDbUpdate(
416
416
getLogger ( ) . warn (
417
417
"unknown property '" +
418
418
propertyName +
419
- "' on an update operation on collection '" +
420
- collectionName +
421
- "' with component '" +
419
+ "' for document '" +
422
420
id +
423
- "'"
421
+ "' (collection '" +
422
+ collectionName +
423
+ "' )"
424
424
) ;
425
425
} ;
426
426
@@ -432,7 +432,7 @@ exports.unknownPropertyOnDbUpdate = function unknownPropertyOnDbUpdate(
432
432
*/
433
433
exports . unknownMethod = function unknownMethod ( classId , methodName ) {
434
434
getLogger ( ) . warn (
435
- "try to call an unknown method '" +
435
+ "try to call an unknown action '" +
436
436
methodName +
437
437
"' for the class '" +
438
438
classId +
@@ -447,11 +447,11 @@ exports.unknownMethod = function unknownMethod(classId, methodName) {
447
447
*/
448
448
exports . invalidCollectionName = function invalidCollectionName ( name ) {
449
449
getLogger ( ) . warn (
450
- "invalid name for creating the collection '" +
450
+ "invalid name for the collection '" +
451
451
name +
452
452
"': there is no schema '" +
453
453
name +
454
- "' in the metamodel "
454
+ "'"
455
455
) ;
456
456
} ;
457
457
@@ -478,7 +478,7 @@ exports.invalidResultType = function invalidResultType(
478
478
}
479
479
480
480
getLogger ( ) . warn (
481
- "invalid type for the result of method '" +
481
+ "invalid type for the result of action '" +
482
482
methodName +
483
483
"' on component '" +
484
484
id +
@@ -495,27 +495,15 @@ exports.invalidResultType = function invalidResultType(
495
495
/**
496
496
* @method unknownComponent
497
497
* @param {String } id id of the class
498
- * @param {String } componentId if of the component
498
+ * @param {String } componentId id of the component
499
499
* @description Unknown class
500
500
*/
501
501
exports . unknownComponent = function unknownComponent ( className , componentId ) {
502
502
getLogger ( ) . warn (
503
- "unkown class component '" +
504
- className +
505
- "' for component '" +
506
- componentId +
507
- "'"
503
+ "unkown class name '" + className + "' for component '" + componentId + "'"
508
504
) ;
509
505
} ;
510
506
511
- /**
512
- * @method workflowRestarted
513
- * @description The System Runtime workflow has been restarted
514
- */
515
- exports . workflowRestarted = function workflowRestarted ( ) {
516
- getLogger ( ) . warn ( 'runtime has been restarted' ) ;
517
- } ;
518
-
519
507
/**
520
508
* @method invalidParamNumber
521
509
* @param {String } id id of the component
@@ -535,7 +523,7 @@ exports.invalidParamNumber = function invalidParamNumber(
535
523
}
536
524
537
525
getLogger ( ) . warn (
538
- "invalid number of parameters when calling the method '" +
526
+ "invalid number of parameters when calling the action '" +
539
527
methodName +
540
528
"' on component '" +
541
529
id +
@@ -567,7 +555,7 @@ exports.invalidParamType = function invalidParamType(
567
555
getLogger ( ) . warn (
568
556
"invalid type for the parameter '" +
569
557
paramName +
570
- "' when calling the method '" +
558
+ "' when calling the action '" +
571
559
methodName +
572
560
"' on component '" +
573
561
id +
@@ -576,7 +564,7 @@ exports.invalidParamType = function invalidParamType(
576
564
) ;
577
565
} else {
578
566
getLogger ( ) . warn (
579
- "invalid type for a parameter when calling the method '" +
567
+ "invalid type for a parameter when calling the action '" +
580
568
methodName +
581
569
"' on component '" +
582
570
id +
@@ -594,7 +582,7 @@ exports.invalidParamType = function invalidParamType(
594
582
*/
595
583
exports . behaviorNotUnique = function behaviorNotUnique ( id , stateName ) {
596
584
getLogger ( ) . warn (
597
- "try to add more than one behavior for the state '" +
585
+ "try to add more than one action for the state '" +
598
586
stateName +
599
587
"' on class '" +
600
588
id +
@@ -610,7 +598,7 @@ exports.behaviorNotUnique = function behaviorNotUnique(id, stateName) {
610
598
*/
611
599
exports . invalidStateOn = function invalidStateOn ( id , stateName ) {
612
600
getLogger ( ) . warn (
613
- "try to add a behavior to an unkwown state '" +
601
+ "try to add an action to an unkwown state '" +
614
602
stateName +
615
603
"' on class '" +
616
604
id +
@@ -626,7 +614,7 @@ exports.invalidStateOn = function invalidStateOn(id, stateName) {
626
614
*/
627
615
exports . invalidStateOff = function invalidStateOff ( id , stateName ) {
628
616
getLogger ( ) . warn (
629
- "try to remove a behavior from an unkwown state '" +
617
+ "try to remove an action from an unkwown state '" +
630
618
stateName +
631
619
"' on class '" +
632
620
id +
@@ -754,7 +742,7 @@ exports.invalidParamNumberMethodOn = function invalidParamNumberMethodOn(
754
742
classInfo = " (class '" + className + "')" ;
755
743
}
756
744
getLogger ( ) . warn (
757
- "invalid number of parameters when adding a behavior on method '" +
745
+ "invalid number of parameters when adding an action for the state '" +
758
746
methodName +
759
747
"' on component '" +
760
748
id +
@@ -884,9 +872,7 @@ exports.invalidConctructorParameters = function invalidConctructorParameters(
884
872
* @description Get the information of an unkown model
885
873
*/
886
874
exports . unknownModel = function unknownModel ( classId ) {
887
- getLogger ( ) . warn (
888
- "try get the information of an unknown model '" + classId + "'"
889
- ) ;
875
+ getLogger ( ) . warn ( "the model '" + classId + "' does not exist" ) ;
890
876
} ;
891
877
892
878
/**
@@ -906,13 +892,13 @@ exports.missingSchema = function missingSchema(name) {
906
892
exports . cyclicDependency = function cyclicDependency ( name ) {
907
893
if ( name ) {
908
894
getLogger ( ) . error (
909
- ' a cyclic inheritance dependency with ’' +
895
+ " a cyclic inheritance dependency with the schema '" +
910
896
name +
911
- "’ schema has been found, please check the '_inherit' properties of your schemas "
897
+ "’ has been found, please check the '_inherit' property of this schema "
912
898
) ;
913
899
} else {
914
900
getLogger ( ) . error (
915
- "a cyclic inheritance dependency has been found, please check the '_inherit' properties of your schemas"
901
+ "a cyclic inheritance dependency has been found, please check the '_inherit' properties of the schemas"
916
902
) ;
917
903
}
918
904
} ;
@@ -1048,7 +1034,7 @@ exports.actionInvokeError = function actionInvokeError(
1048
1034
) {
1049
1035
if ( className !== 'Function' ) {
1050
1036
getLogger ( ) . error (
1051
- "error when running the behavior '" +
1037
+ "error when calling the action '" +
1052
1038
state +
1053
1039
"' on component '" +
1054
1040
id +
@@ -1059,7 +1045,7 @@ exports.actionInvokeError = function actionInvokeError(
1059
1045
) ;
1060
1046
} else {
1061
1047
getLogger ( ) . error (
1062
- "error when running the behavior '" +
1048
+ "error when calling the action '" +
1063
1049
state +
1064
1050
"' on component '" +
1065
1051
id +
@@ -1100,7 +1086,7 @@ exports.invalidSchemaProperty = function invalidSchemaProperty(name, propName) {
1100
1086
propName +
1101
1087
"' for schema '" +
1102
1088
name +
1103
- "': only 'property', 'link', 'collection', 'method' and 'event' are allowed. "
1089
+ "': only 'property', 'link', 'collection', 'method' and 'event' are allowed"
1104
1090
) ;
1105
1091
} ;
1106
1092
@@ -1137,7 +1123,7 @@ exports.invalidState = function invalidState(model, state) {
1137
1123
*/
1138
1124
exports . unknownContext = function unknownContext ( className , methodName ) {
1139
1125
getLogger ( ) . warn (
1140
- "invoke the behavior '" +
1126
+ "invoke the action '" +
1141
1127
methodName +
1142
1128
"' on the class '" +
1143
1129
className +
0 commit comments