Scenarios para el feature Project Resources y modificacion del feature project

This commit is contained in:
Wendy Nestor
2014-01-08 08:54:17 -04:00
parent f19f757d05
commit 26ea3884b6
5 changed files with 1502 additions and 722 deletions

View File

@@ -5,17 +5,48 @@ Feature: Project Activity Resources
Given that I have a valid access_token Given that I have a valid access_token
Scenario: Get properties & definition of a activity. Scenario: Get properties & definition of a activity.
Given this scenario is not implemented yet Given I request "project/4224292655297723eb98691001100052/activity/65496814252977243d57684076211485"
Then the response status code should be 200
And the response charset is "UTF-8"
And the content type is "application/json"
And the type is "object"
Scenario: Get BPMN definition of an activity. Scenario: Get BPMN definition of an activity.
Given this scenario is not implemented yet Given I request "project/4224292655297723eb98691001100052/activity/65496814252977243d57684076211485?filter=definition"
Then the response status code should be 200
And the response charset is "UTF-8"
And the content type is "application/json"
And the type is "object"
Scenario: Get properties data of the ProcessMaker engine of an activity. Scenario: Get properties data of the ProcessMaker engine of an activity.
Given this scenario is not implemented yet Given I request "project/4224292655297723eb98691001100052/activity/65496814252977243d57684076211485?filter=properties"
Then the response status code should be 200
And the response charset is "UTF-8"
And the content type is "application/json"
And the type is "object"
Scenario: Update definition & properties of an activity Scenario: Update definition & properties of an activity
Given this scenario is not implemented yet Given PUT data from file "activity_update_properties.json"
And I request "project/4224292655297723eb98691001100052/activity/65496814252977243d57684076211485"
Then the response status code should be 200
Scenario: Get properties & definition of an updated activity.
Given I request "project/4224292655297723eb98691001100052/activity/65496814252977243d57684076211485"
Then the response status code should be 200
And the response charset is "UTF-8"
And the content type is "application/json"
And the type is "object"
And the response is equivalent to this json file "activity_update_properties.json"
Scenario: Delete a project activity Scenario: Delete a project activity
Given this scenario is not implemented yet Given that I want to delete "activity"
And I request "project/4224292655297723eb98691001100052/activity/95897010052ccb746c770b6003171032"
Then the response status code should be 200
Scenario: Get properties & definition of a activity (subprocess)
Given I request "project/4224292655297723eb98691001100052/activity/68065066252ccb7913b9be6048174072"
Then the response status code should be 200
And the response charset is "UTF-8"
And the content type is "application/json"
And the type is "object"

View File

@@ -3,6 +3,14 @@ Feature: Project Resources
Background: Background:
Given that I have a valid access_token Given that I have a valid access_token
Scenario: Get a list of projects
Given I request "projects"
Then the response status code should be 200
And the response charset is "UTF-8"
And the content type is "application/json"
And the type is "array"
Scenario: Get a single project Scenario: Get a single project
@@ -10,7 +18,7 @@ Feature: Project Resources
Then the response status code should be 200 Then the response status code should be 200
And the response charset is "UTF-8" And the response charset is "UTF-8"
And the content type is "application/json" And the content type is "application/json"
And the type is "array" And the type is "object"
Scenario: Create a new project Scenario: Create a new project

View File

@@ -0,0 +1,27 @@
{
"definition": [],
"properties": {
"tas_type": "NORMAL",
"tas_duration": 4,
"tas_type_day": "",
"tas_timeunit": "DAYS",
"tas_priority_variable": "",
"tas_assign_type": "BALANCED",
"tas_assign_variable": "@@SYS_NEXT_USER_TO_BE_ASSIGNED",
"tas_group_variable": "",
"tas_transfer_fly": "FALSE",
"tas_send_last_email": "FALSE",
"tas_derivation_screen_tpl": "",
"tas_selfservice_timeout": 0,
"tas_selfservice_time": "",
"tas_selfservice_time_unit": "",
"tas_selfservice_trigger_uid": "",
"tas_title": "Task Inicial endpoint - Modificado por Jenkins",
"tas_description": "Test de modificacion en la descripcion",
"tas_def_title": "Test",
"tas_def_description": "",
"tas_def_message": "",
"tas_def_subject_message": "",
"tas_calendar": ""
}
}

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,714 @@
"prj_uid": "6e60d25b2a779b263104f141c215466b",
"prj_name": "Project #1 (parallel-by-ev)",
"prj_description": "",
"diagrams": [
{
"dia_uid": "a5242da840064218638061532405176",
"pro_uid": "68269130852b04ccbda0558053566350",
"laneset": [],
"lanes": [],
"activities": [
{
"act_uid": "20130110852b04cd0da0710001476342",
"act_name": "Task # 1",
"act_type": "TASK",
"act_task_type": "EMPTY",
"act_is_for_compensation": false,
"act_start_quantity": 1,
"act_completion_quantity": 0,
"act_implementation": "",
"act_instantiate": false,
"act_script_type": "",
"act_script": "",
"act_loop_type": "NONE",
"act_test_before": null,
"act_loop_maximum": 0,
"act_loop_condition": null,
"act_loop_cardinality": 0,
"act_loop_behavior": null,
"act_is_adhoc": false,
"act_is_collapsed": false,
"act_completion_condition": null,
"act_ordering": null,
"act_cancel_remaining_instances": true,
"act_protocol": null,
"act_method": null,
"act_is_global": false,
"act_referer": null,
"act_default_flow": 0,
"act_master_diagram": null,
"bou_x": 334,
"bou_y": 110,
"bou_width": 100,
"bou_height": 50,
"bou_container": "bpmnDiagram",
"bou_element_id": "70770714052b04ccbda05a2045860900"
},
{
"act_uid": "55963679852b04cfdda1ca7057330775",
"act_name": "Task # 2",
"act_type": "TASK",
"act_task_type": "EMPTY",
"act_is_for_compensation": false,
"act_start_quantity": 1,
"act_completion_quantity": 0,
"act_implementation": "",
"act_instantiate": false,
"act_script_type": "",
"act_script": "",
"act_loop_type": "NONE",
"act_test_before": null,
"act_loop_maximum": 0,
"act_loop_condition": null,
"act_loop_cardinality": 0,
"act_loop_behavior": null,
"act_is_adhoc": false,
"act_is_collapsed": false,
"act_completion_condition": null,
"act_ordering": null,
"act_cancel_remaining_instances": true,
"act_protocol": null,
"act_method": null,
"act_is_global": false,
"act_referer": null,
"act_default_flow": 0,
"act_master_diagram": null,
"bou_x": 135,
"bou_y": 327,
"bou_width": 100,
"bou_height": 50,
"bou_container": "bpmnDiagram",
"bou_element_id": "70770714052b04ccbda05a2045860900"
},
{
"act_uid": "36275645952b04d03da2683059221904",
"act_name": "Task # 3",
"act_type": "TASK",
"act_task_type": "EMPTY",
"act_is_for_compensation": false,
"act_start_quantity": 1,
"act_completion_quantity": 0,
"act_implementation": "",
"act_instantiate": false,
"act_script_type": "",
"act_script": "",
"act_loop_type": "NONE",
"act_test_before": null,
"act_loop_maximum": 0,
"act_loop_condition": null,
"act_loop_cardinality": 0,
"act_loop_behavior": null,
"act_is_adhoc": false,
"act_is_collapsed": false,
"act_completion_condition": null,
"act_ordering": null,
"act_cancel_remaining_instances": true,
"act_protocol": null,
"act_method": null,
"act_is_global": false,
"act_referer": null,
"act_default_flow": 0,
"act_master_diagram": null,
"bou_x": 336,
"bou_y": 329,
"bou_width": 100,
"bou_height": 50,
"bou_container": "bpmnDiagram",
"bou_element_id": "70770714052b04ccbda05a2045860900"
},
{
"act_uid": "39924412652b04d0bda3cc4088664712",
"act_name": "Task # 4",
"act_type": "TASK",
"act_task_type": "EMPTY",
"act_is_for_compensation": false,
"act_start_quantity": 1,
"act_completion_quantity": 0,
"act_implementation": "",
"act_instantiate": false,
"act_script_type": "",
"act_script": "",
"act_loop_type": "NONE",
"act_test_before": null,
"act_loop_maximum": 0,
"act_loop_condition": null,
"act_loop_cardinality": 0,
"act_loop_behavior": null,
"act_is_adhoc": false,
"act_is_collapsed": false,
"act_completion_condition": null,
"act_ordering": null,
"act_cancel_remaining_instances": true,
"act_protocol": null,
"act_method": null,
"act_is_global": false,
"act_referer": null,
"act_default_flow": 0,
"act_master_diagram": null,
"bou_x": 467,
"bou_y": 331,
"bou_width": 100,
"bou_height": 50,
"bou_container": "bpmnDiagram",
"bou_element_id": "70770714052b04ccbda05a2045860900"
},
{
"act_uid": "81865611252b04d14da4f39027749188",
"act_name": "Task # 5",
"act_type": "TASK",
"act_task_type": "EMPTY",
"act_is_for_compensation": false,
"act_start_quantity": 1,
"act_completion_quantity": 0,
"act_implementation": "",
"act_instantiate": false,
"act_script_type": "",
"act_script": "",
"act_loop_type": "NONE",
"act_test_before": null,
"act_loop_maximum": 0,
"act_loop_condition": null,
"act_loop_cardinality": 0,
"act_loop_behavior": null,
"act_is_adhoc": false,
"act_is_collapsed": false,
"act_completion_condition": null,
"act_ordering": null,
"act_cancel_remaining_instances": true,
"act_protocol": null,
"act_method": null,
"act_is_global": false,
"act_referer": null,
"act_default_flow": 0,
"act_master_diagram": null,
"bou_x": 634,
"bou_y": 331,
"bou_width": 100,
"bou_height": 50,
"bou_container": "bpmnDiagram",
"bou_element_id": "70770714052b04ccbda05a2045860900"
},
{
"act_uid": "43669577152b05b69daabe5029145631",
"act_name": "Task # 6",
"act_type": "TASK",
"act_task_type": "EMPTY",
"act_is_for_compensation": false,
"act_start_quantity": 1,
"act_completion_quantity": 0,
"act_implementation": "",
"act_instantiate": false,
"act_script_type": "",
"act_script": "",
"act_loop_type": "NONE",
"act_test_before": null,
"act_loop_maximum": 0,
"act_loop_condition": null,
"act_loop_cardinality": 0,
"act_loop_behavior": null,
"act_is_adhoc": false,
"act_is_collapsed": false,
"act_completion_condition": null,
"act_ordering": null,
"act_cancel_remaining_instances": true,
"act_protocol": null,
"act_method": null,
"act_is_global": false,
"act_referer": null,
"act_default_flow": 0,
"act_master_diagram": null,
"bou_x": 429,
"bou_y": 531,
"bou_width": 100,
"bou_height": 50,
"bou_container": "bpmnDiagram",
"bou_element_id": "70770714052b04ccbda05a2045860900"
}
],
"events": [
{
"evn_uid": "55171305452b04cd3da08c9074517180",
"evn_name": "Start # 1",
"evn_type": "START",
"evn_marker": "MESSAGE",
"evn_is_interrupting": true,
"evn_cancel_activity": false,
"evn_activity_ref": null,
"evn_wait_for_completion": false,
"evn_error_name": null,
"evn_error_code": null,
"evn_escalation_name": null,
"evn_escalation_code": null,
"evn_message": "LEAD",
"evn_operation_name": null,
"evn_operation_implementation_ref": null,
"evn_time_date": null,
"evn_time_cycle": null,
"evn_time_duration": null,
"evn_behavior": "CATCH",
"bou_x": 367,
"bou_y": 32,
"bou_width": 33,
"bou_height": 33,
"bou_container": "bpmnDiagram",
"bou_element_id": "70770714052b04ccbda05a2045860900"
},
{
"evn_uid": "57589846552b05b73daea69075516155",
"evn_name": "End # 1",
"evn_type": "END",
"evn_marker": "EMPTY",
"evn_is_interrupting": true,
"evn_cancel_activity": false,
"evn_activity_ref": null,
"evn_wait_for_completion": false,
"evn_error_name": null,
"evn_error_code": null,
"evn_escalation_name": null,
"evn_escalation_code": null,
"evn_message": "",
"evn_operation_name": null,
"evn_operation_implementation_ref": null,
"evn_time_date": null,
"evn_time_cycle": null,
"evn_time_duration": null,
"evn_behavior": "THROW",
"bou_x": 579,
"bou_y": 621,
"bou_width": 33,
"bou_height": 33,
"bou_container": "bpmnDiagram",
"bou_element_id": "70770714052b04ccbda05a2045860900"
}
],
"gateways": [
{
"gat_uid": "37050857352b04ceada1799074850936",
"gat_name": "Parallel by Evaluation # 1",
"gat_type": "PARALLEL_EVALUATION",
"gat_direction": null,
"gat_instantiate": false,
"gat_event_gateway_type": "NONE",
"gat_activation_count": 0,
"gat_waiting_for_start": true,
"gat_default_flow": 0,
"bou_x": 363,
"bou_y": 205,
"bou_width": 45,
"bou_height": 45,
"bou_container": "bpmnDiagram",
"bou_element_id": "70770714052b04ccbda05a2045860900"
},
{
"gat_uid": "96977315752b04d25da5fb6015463105",
"gat_name": "Parallel Join # 1",
"gat_type": "PARALLEL_JOIN",
"gat_direction": null,
"gat_instantiate": false,
"gat_event_gateway_type": "NONE",
"gat_activation_count": 0,
"gat_waiting_for_start": true,
"gat_default_flow": 0,
"bou_x": 391,
"bou_y": 457,
"bou_width": 45,
"bou_height": 45,
"bou_container": "bpmnDiagram",
"bou_element_id": "70770714052b04ccbda05a2045860900"
}
],
"flows": [
{
"flo_uid": "85852223452b04cd9da0d24062477197",
"flo_type": "SEQUENCE",
"flo_name": null,
"flo_element_origin": "55171305452b04cd3da08c9074517180",
"flo_element_origin_type": "bpmnEvent",
"flo_element_dest": "20130110852b04cd0da0710001476342",
"flo_element_dest_type": "bpmnActivity",
"flo_is_inmediate": true,
"flo_condition": null,
"flo_state": [
{
"x": 382,
"y": 67
},
{
"x": 382,
"y": 87
},
{
"x": 383,
"y": 87
},
{
"x": 383,
"y": 108
}
],
"flo_x1": 382,
"flo_y1": 114,
"flo_x2": 388,
"flo_y2": 114
},
{
"flo_uid": "98521752352b04cf9da1bc8031684305",
"flo_type": "SEQUENCE",
"flo_name": null,
"flo_element_origin": "20130110852b04cd0da0710001476342",
"flo_element_origin_type": "bpmnActivity",
"flo_element_dest": "37050857352b04ceada1799074850936",
"flo_element_dest_type": "bpmnGateway",
"flo_is_inmediate": true,
"flo_condition": null,
"flo_state": [
{
"x": 383,
"y": 163
},
{
"x": 383,
"y": 184
},
{
"x": 386,
"y": 184
},
{
"x": 386,
"y": 205
}
],
"flo_x1": 383,
"flo_y1": 205,
"flo_x2": 386,
"flo_y2": 205
},
{
"flo_uid": "51012823052b04d00da25b0076746454",
"flo_type": "SEQUENCE",
"flo_name": null,
"flo_element_origin": "37050857352b04ceada1799074850936",
"flo_element_origin_type": "bpmnGateway",
"flo_element_dest": "55963679852b04cfdda1ca7057330775",
"flo_element_dest_type": "bpmnActivity",
"flo_is_inmediate": true,
"flo_condition": null,
"flo_state": [
{
"x": 386,
"y": 250
},
{
"x": 386,
"y": 287
},
{
"x": 184,
"y": 287
},
{
"x": 184,
"y": 325
}
],
"flo_x1": 386,
"flo_y1": 325,
"flo_x2": 223,
"flo_y2": 325
},
{
"flo_uid": "21566164052b04d06da2be5053173210",
"flo_type": "SEQUENCE",
"flo_name": null,
"flo_element_origin": "37050857352b04ceada1799074850936",
"flo_element_origin_type": "bpmnGateway",
"flo_element_dest": "36275645952b04d03da2683059221904",
"flo_element_dest_type": "bpmnActivity",
"flo_is_inmediate": true,
"flo_condition": null,
"flo_state": [
{
"x": 386,
"y": 250
},
{
"x": 386,
"y": 288
},
{
"x": 385,
"y": 288
},
{
"x": 385,
"y": 327
}
],
"flo_x1": 386,
"flo_y1": 336,
"flo_x2": 439,
"flo_y2": 336
},
{
"flo_uid": "13502002652b04d0eda4297008861549",
"flo_type": "SEQUENCE",
"flo_name": null,
"flo_element_origin": "37050857352b04ceada1799074850936",
"flo_element_origin_type": "bpmnGateway",
"flo_element_dest": "39924412652b04d0bda3cc4088664712",
"flo_element_dest_type": "bpmnActivity",
"flo_is_inmediate": true,
"flo_condition": null,
"flo_state": [
{
"x": 386,
"y": 250
},
{
"x": 386,
"y": 289
},
{
"x": 516,
"y": 289
},
{
"x": 516,
"y": 329
}
],
"flo_x1": 386,
"flo_y1": 341,
"flo_x2": 556,
"flo_y2": 341,
"_action": "CREATE"
},
{
"flo_uid": "51780192952b04d1ada5389065057435",
"flo_type": "SEQUENCE",
"flo_name": null,
"flo_element_origin": "37050857352b04ceada1799074850936",
"flo_element_origin_type": "bpmnGateway",
"flo_element_dest": "81865611252b04d14da4f39027749188",
"flo_element_dest_type": "bpmnActivity",
"flo_is_inmediate": true,
"flo_condition": null,
"flo_state": [
{
"x": 386,
"y": 250
},
{
"x": 386,
"y": 289
},
{
"x": 683,
"y": 289
},
{
"x": 683,
"y": 329
}
],
"flo_x1": 386,
"flo_y1": 329,
"flo_x2": 683,
"flo_y2": 329
},
{
"flo_uid": "11527570252b04d29da6573070436369",
"flo_type": "SEQUENCE",
"flo_name": null,
"flo_element_origin": "36275645952b04d03da2683059221904",
"flo_element_origin_type": "bpmnActivity",
"flo_element_dest": "96977315752b04d25da5fb6015463105",
"flo_element_dest_type": "bpmnGateway",
"flo_is_inmediate": true,
"flo_condition": null,
"flo_state": [
{
"x": 385,
"y": 382
},
{
"x": 385,
"y": 419
},
{
"x": 414,
"y": 419
},
{
"x": 414,
"y": 457
}
],
"flo_x1": 385,
"flo_y1": 480,
"flo_x2": 414,
"flo_y2": 480
},
{
"flo_uid": "99492263452b04d2dda6d16026220307",
"flo_type": "SEQUENCE",
"flo_name": null,
"flo_element_origin": "39924412652b04d0bda3cc4088664712",
"flo_element_origin_type": "bpmnActivity",
"flo_element_dest": "96977315752b04d25da5fb6015463105",
"flo_element_dest_type": "bpmnGateway",
"flo_is_inmediate": true,
"flo_condition": null,
"flo_state": [
{
"x": 516,
"y": 384
},
{
"x": 516,
"y": 420
},
{
"x": 414,
"y": 420
},
{
"x": 414,
"y": 457
}
],
"flo_x1": 516,
"flo_y1": 480,
"flo_x2": 414,
"flo_y2": 480
},
{
"flo_uid": "61995297952b04d31da7337053386832",
"flo_type": "SEQUENCE",
"flo_name": null,
"flo_element_origin": "81865611252b04d14da4f39027749188",
"flo_element_origin_type": "bpmnActivity",
"flo_element_dest": "96977315752b04d25da5fb6015463105",
"flo_element_dest_type": "bpmnGateway",
"flo_is_inmediate": true,
"flo_condition": null,
"flo_state": [
{
"x": 683,
"y": 384
},
{
"x": 683,
"y": 480
},
{
"x": 436,
"y": 480
}
],
"flo_x1": 683,
"flo_y1": 503,
"flo_x2": 436,
"flo_y2": 503
},
{
"flo_uid": "52373453752b04d34da7826007505462",
"flo_type": "SEQUENCE",
"flo_name": null,
"flo_element_origin": "55963679852b04cfdda1ca7057330775",
"flo_element_origin_type": "bpmnActivity",
"flo_element_dest": "96977315752b04d25da5fb6015463105",
"flo_element_dest_type": "bpmnGateway",
"flo_is_inmediate": true,
"flo_condition": null,
"flo_state": [
{
"x": 184,
"y": 380
},
{
"x": 184,
"y": 480
},
{
"x": 391,
"y": 480
}
],
"flo_x1": 184,
"flo_y1": 503,
"flo_x2": 391,
"flo_y2": 503
},
{
"flo_uid": "98839915852b05b6cdab1d9031584510",
"flo_type": "SEQUENCE",
"flo_name": null,
"flo_element_origin": "96977315752b04d25da5fb6015463105",
"flo_element_origin_type": "bpmnGateway",
"flo_element_dest": "43669577152b05b69daabe5029145631",
"flo_element_dest_type": "bpmnActivity",
"flo_is_inmediate": true,
"flo_condition": null,
"flo_state": [
{
"x": 414,
"y": 457
},
{
"x": 414,
"y": 437
},
{
"x": 478,
"y": 437
},
{
"x": 478,
"y": 529
}
],
"flo_x1": 414,
"flo_y1": 600,
"flo_x2": 443,
"flo_y2": 600
},
{
"flo_uid": "30547450952b05b75daefd9056968485",
"flo_type": "SEQUENCE",
"flo_name": null,
"flo_element_origin": "43669577152b05b69daabe5029145631",
"flo_element_origin_type": "bpmnActivity",
"flo_element_dest": "57589846552b05b73daea69075516155",
"flo_element_dest_type": "bpmnEvent",
"flo_is_inmediate": true,
"flo_condition": null,
"flo_state": [
{
"x": 478,
"y": 529
},
{
"x": 478,
"y": 509
},
{
"x": 594,
"y": 509
},
{
"x": 594,
"y": 619
}
],
"flo_x1": 478,
"flo_y1": 664,
"flo_x2": 531,
"flo_y2": 664
}
],
"artifacts": []
}
]
}