@@ -215,7 +215,7 @@ exports.missingProperty = function missingProperty(propertyName) {
215215 * @description A class definition is missing
216216 */
217217exports . missingImplementation = function missingImplementation ( name ) {
218- getLogger ( ) . warn ( "schema '" + name + "' is missing. " ) ;
218+ getLogger ( ) . warn ( "schema '" + name + "' is missing" ) ;
219219} ;
220220
221221/**
@@ -364,9 +364,9 @@ exports.invalidDocumentOnDbInsert = function invalidDocumentOnDbInsert(
364364 getLogger ( ) . warn (
365365 "invalid document '" +
366366 JSON . stringify ( doc ) . replace ( / , / g, ', ' ) +
367- "' on an insert operation on collection '" +
367+ "' ( collection '" +
368368 collectionName +
369- "'"
369+ "' ) "
370370 ) ;
371371} ;
372372
@@ -387,9 +387,9 @@ exports.invalidPropertyTypeOnDbUpdate = function invalidPropertyTypeOnDbUpdate(
387387 type
388388) {
389389 getLogger ( ) . warn (
390- "invalid type when trying to update the property '" +
390+ "invalid type for the property '" +
391391 propertyName +
392- "' of document '" +
392+ "' of the document '" +
393393 id +
394394 "' (collection '" +
395395 collectionName +
@@ -416,11 +416,11 @@ exports.unknownPropertyOnDbUpdate = function unknownPropertyOnDbUpdate(
416416 getLogger ( ) . warn (
417417 "unknown property '" +
418418 propertyName +
419- "' on an update operation on collection '" +
420- collectionName +
421- "' with component '" +
419+ "' for document '" +
422420 id +
423- "'"
421+ "' (collection '" +
422+ collectionName +
423+ "' )"
424424 ) ;
425425} ;
426426
@@ -432,7 +432,7 @@ exports.unknownPropertyOnDbUpdate = function unknownPropertyOnDbUpdate(
432432 */
433433exports . unknownMethod = function unknownMethod ( classId , methodName ) {
434434 getLogger ( ) . warn (
435- "try to call an unknown method '" +
435+ "try to call an unknown action '" +
436436 methodName +
437437 "' for the class '" +
438438 classId +
@@ -447,11 +447,11 @@ exports.unknownMethod = function unknownMethod(classId, methodName) {
447447 */
448448exports . invalidCollectionName = function invalidCollectionName ( name ) {
449449 getLogger ( ) . warn (
450- "invalid name for creating the collection '" +
450+ "invalid name for the collection '" +
451451 name +
452452 "': there is no schema '" +
453453 name +
454- "' in the metamodel "
454+ "'"
455455 ) ;
456456} ;
457457
@@ -478,7 +478,7 @@ exports.invalidResultType = function invalidResultType(
478478 }
479479
480480 getLogger ( ) . warn (
481- "invalid type for the result of method '" +
481+ "invalid type for the result of action '" +
482482 methodName +
483483 "' on component '" +
484484 id +
@@ -495,27 +495,15 @@ exports.invalidResultType = function invalidResultType(
495495/**
496496 * @method unknownComponent
497497 * @param {String } id id of the class
498- * @param {String } componentId if of the component
498+ * @param {String } componentId id of the component
499499 * @description Unknown class
500500 */
501501exports . unknownComponent = function unknownComponent ( className , componentId ) {
502502 getLogger ( ) . warn (
503- "unkown class component '" +
504- className +
505- "' for component '" +
506- componentId +
507- "'"
503+ "unkown class name '" + className + "' for component '" + componentId + "'"
508504 ) ;
509505} ;
510506
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-
519507/**
520508 * @method invalidParamNumber
521509 * @param {String } id id of the component
@@ -535,7 +523,7 @@ exports.invalidParamNumber = function invalidParamNumber(
535523 }
536524
537525 getLogger ( ) . warn (
538- "invalid number of parameters when calling the method '" +
526+ "invalid number of parameters when calling the action '" +
539527 methodName +
540528 "' on component '" +
541529 id +
@@ -567,7 +555,7 @@ exports.invalidParamType = function invalidParamType(
567555 getLogger ( ) . warn (
568556 "invalid type for the parameter '" +
569557 paramName +
570- "' when calling the method '" +
558+ "' when calling the action '" +
571559 methodName +
572560 "' on component '" +
573561 id +
@@ -576,7 +564,7 @@ exports.invalidParamType = function invalidParamType(
576564 ) ;
577565 } else {
578566 getLogger ( ) . warn (
579- "invalid type for a parameter when calling the method '" +
567+ "invalid type for a parameter when calling the action '" +
580568 methodName +
581569 "' on component '" +
582570 id +
@@ -594,7 +582,7 @@ exports.invalidParamType = function invalidParamType(
594582 */
595583exports . behaviorNotUnique = function behaviorNotUnique ( id , stateName ) {
596584 getLogger ( ) . warn (
597- "try to add more than one behavior for the state '" +
585+ "try to add more than one action for the state '" +
598586 stateName +
599587 "' on class '" +
600588 id +
@@ -610,7 +598,7 @@ exports.behaviorNotUnique = function behaviorNotUnique(id, stateName) {
610598 */
611599exports . invalidStateOn = function invalidStateOn ( id , stateName ) {
612600 getLogger ( ) . warn (
613- "try to add a behavior to an unkwown state '" +
601+ "try to add an action to an unkwown state '" +
614602 stateName +
615603 "' on class '" +
616604 id +
@@ -626,7 +614,7 @@ exports.invalidStateOn = function invalidStateOn(id, stateName) {
626614 */
627615exports . invalidStateOff = function invalidStateOff ( id , stateName ) {
628616 getLogger ( ) . warn (
629- "try to remove a behavior from an unkwown state '" +
617+ "try to remove an action from an unkwown state '" +
630618 stateName +
631619 "' on class '" +
632620 id +
@@ -754,7 +742,7 @@ exports.invalidParamNumberMethodOn = function invalidParamNumberMethodOn(
754742 classInfo = " (class '" + className + "')" ;
755743 }
756744 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 '" +
758746 methodName +
759747 "' on component '" +
760748 id +
@@ -884,9 +872,7 @@ exports.invalidConctructorParameters = function invalidConctructorParameters(
884872 * @description Get the information of an unkown model
885873 */
886874exports . 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" ) ;
890876} ;
891877
892878/**
@@ -906,13 +892,13 @@ exports.missingSchema = function missingSchema(name) {
906892exports . cyclicDependency = function cyclicDependency ( name ) {
907893 if ( name ) {
908894 getLogger ( ) . error (
909- ' a cyclic inheritance dependency with ’' +
895+ " a cyclic inheritance dependency with the schema '" +
910896 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 "
912898 ) ;
913899 } else {
914900 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"
916902 ) ;
917903 }
918904} ;
@@ -1048,7 +1034,7 @@ exports.actionInvokeError = function actionInvokeError(
10481034) {
10491035 if ( className !== 'Function' ) {
10501036 getLogger ( ) . error (
1051- "error when running the behavior '" +
1037+ "error when calling the action '" +
10521038 state +
10531039 "' on component '" +
10541040 id +
@@ -1059,7 +1045,7 @@ exports.actionInvokeError = function actionInvokeError(
10591045 ) ;
10601046 } else {
10611047 getLogger ( ) . error (
1062- "error when running the behavior '" +
1048+ "error when calling the action '" +
10631049 state +
10641050 "' on component '" +
10651051 id +
@@ -1100,7 +1086,7 @@ exports.invalidSchemaProperty = function invalidSchemaProperty(name, propName) {
11001086 propName +
11011087 "' for schema '" +
11021088 name +
1103- "': only 'property', 'link', 'collection', 'method' and 'event' are allowed. "
1089+ "': only 'property', 'link', 'collection', 'method' and 'event' are allowed"
11041090 ) ;
11051091} ;
11061092
@@ -1137,7 +1123,7 @@ exports.invalidState = function invalidState(model, state) {
11371123 */
11381124exports . unknownContext = function unknownContext ( className , methodName ) {
11391125 getLogger ( ) . warn (
1140- "invoke the behavior '" +
1126+ "invoke the action '" +
11411127 methodName +
11421128 "' on the class '" +
11431129 className +
0 commit comments