Muestra las diferencias entre dos versiones de la página.
Ambos lados, revisión anterior Revisión previa Próxima revisión | Revisión previa | ||
ada:tips:sicoferp:general:pbtows:procesos:workflowpb [2019/12/11 19:13] 181.132.229.96 |
ada:tips:sicoferp:general:pbtows:procesos:workflowpb [2019/12/11 19:17] (actual) 181.132.229.96 [Pasos para crear un workflow] |
||
---|---|---|---|
Línea 63: | Línea 63: | ||
- Configurar Metadata de consumo y respuesta de los servicios | - Configurar Metadata de consumo y respuesta de los servicios | ||
- Configurar el cataogo del componente con sus servicios | - Configurar el cataogo del componente con sus servicios | ||
- | - Crear encabezado del workflow (Por concenso se recmineda utilizar el mismo nombre del componente) | + | - Crear encabezado del workflow (Por concenso se recomienda utilizar el mismo nombre del componente) |
- Crear los pasos que definen el servicio y registrar adecuadamente los tag de identificación de los lanzadores de acciones. | - Crear los pasos que definen el servicio y registrar adecuadamente los tag de identificación de los lanzadores de acciones. | ||
Línea 86: | Línea 86: | ||
{{:ada:tips:sicoferp:general:pbtows:procesos:ejemplo_grafico.png?600|}} | {{:ada:tips:sicoferp:general:pbtows:procesos:ejemplo_grafico.png?600|}} | ||
+ | |||
+ | ==== Ejemplo estructura de respuesta (JSON) ==== | ||
+ | |||
+ | <code> | ||
+ | { | ||
+ | "return_code": "1", | ||
+ | "return_user_message": "Flujo de trabajo generado correctamente", | ||
+ | "return_technical_message": "consulta de datos existosa", | ||
+ | "return_response_date": "11/12/2019 16:14:01", | ||
+ | "return_object": { | ||
+ | "workflow_code": "NOVEDAD_DESCUENTO", | ||
+ | "workflow_description": "Flujo de trabajo para los procesos del componente: novedad_descuento", | ||
+ | "workflow_type": "WINDOW_COMPONENT_WORKFLOW", | ||
+ | "workflow_component_code": "NOVEDAD_DESCUENTO", | ||
+ | "workflow_service_code": "NOVEDAD_DESCUENTO_LISTAR", | ||
+ | "step": [ | ||
+ | { | ||
+ | "step_number": 1, | ||
+ | "step_order": 0, | ||
+ | "step_tag": null, | ||
+ | "step_launcher_type": null, | ||
+ | "step_launcher_tag": "list_novedad", | ||
+ | "step_source": { | ||
+ | "step_source_component": "", | ||
+ | "step_source_service": "", | ||
+ | "step_source_gui": "", | ||
+ | "step_source_action": "", | ||
+ | "step_source_endpoint": "" | ||
+ | }, | ||
+ | "step_target": { | ||
+ | "step_target_component": "NOVEDAD_DESCUENTO", | ||
+ | "step_target_service": "NOVEDAD_DESCUENTO_LISTAR", | ||
+ | "step_target_gui": "GRID", | ||
+ | "step_target_action": null, | ||
+ | "step_target_endpoint": "" | ||
+ | } | ||
+ | }, | ||
+ | { | ||
+ | "step_number": 2, | ||
+ | "step_order": 10, | ||
+ | "step_tag": null, | ||
+ | "step_launcher_type": null, | ||
+ | "step_launcher_tag": "show_novedad", | ||
+ | "step_source": { | ||
+ | "step_source_component": "", | ||
+ | "step_source_service": "", | ||
+ | "step_source_gui": "", | ||
+ | "step_source_action": "", | ||
+ | "step_source_endpoint": "" | ||
+ | }, | ||
+ | "step_target": { | ||
+ | "step_target_component": "NOVEDAD_DESCUENTO", | ||
+ | "step_target_service": "NOVEDAD_DESCUENTO_CONSULTAR_DETALLE_NOVEDADES", | ||
+ | "step_target_gui": "TABULAR", | ||
+ | "step_target_action": null, | ||
+ | "step_target_endpoint": "" | ||
+ | } | ||
+ | }, | ||
+ | { | ||
+ | "step_number": 3, | ||
+ | "step_order": 20, | ||
+ | "step_tag": null, | ||
+ | "step_launcher_type": null, | ||
+ | "step_launcher_tag": "edit_novedad", | ||
+ | "step_source": { | ||
+ | "step_source_component": "", | ||
+ | "step_source_service": "", | ||
+ | "step_source_gui": "", | ||
+ | "step_source_action": "", | ||
+ | "step_source_endpoint": "" | ||
+ | }, | ||
+ | "step_target": { | ||
+ | "step_target_component": "NOVEDAD_DESCUENTO", | ||
+ | "step_target_service": "NOVEDAD_DESCUENTO_CONSULTAR_DETALLE_NOVEDADES", | ||
+ | "step_target_gui": "FORM", | ||
+ | "step_target_action": null, | ||
+ | "step_target_endpoint": "" | ||
+ | } | ||
+ | }, | ||
+ | { | ||
+ | "step_number": 4, | ||
+ | "step_order": 30, | ||
+ | "step_tag": null, | ||
+ | "step_launcher_type": null, | ||
+ | "step_launcher_tag": "save_novedad", | ||
+ | "step_source": { | ||
+ | "step_source_component": "", | ||
+ | "step_source_service": "", | ||
+ | "step_source_gui": "", | ||
+ | "step_source_action": "", | ||
+ | "step_source_endpoint": "" | ||
+ | }, | ||
+ | "step_target": { | ||
+ | "step_target_component": "NOVEDAD_DESCUENTO", | ||
+ | "step_target_service": "NOVEDAD_DESCUENTO_GUARDAR_NOVEDADES_DESCUENTO", | ||
+ | "step_target_gui": null, | ||
+ | "step_target_action": null, | ||
+ | "step_target_endpoint": "" | ||
+ | } | ||
+ | }, | ||
+ | { | ||
+ | "step_number": 5, | ||
+ | "step_order": 40, | ||
+ | "step_tag": null, | ||
+ | "step_launcher_type": null, | ||
+ | "step_launcher_tag": "cancel_novedad", | ||
+ | "step_source": { | ||
+ | "step_source_component": "", | ||
+ | "step_source_service": "", | ||
+ | "step_source_gui": "", | ||
+ | "step_source_action": "", | ||
+ | "step_source_endpoint": "" | ||
+ | }, | ||
+ | "step_target": { | ||
+ | "step_target_component": "NOVEDAD_DESCUENTO", | ||
+ | "step_target_service": "NOVEDAD_DESCUENTO_LISTAR", | ||
+ | "step_target_gui": "GRID", | ||
+ | "step_target_action": null, | ||
+ | "step_target_endpoint": "" | ||
+ | } | ||
+ | } | ||
+ | ] | ||
+ | }, | ||
+ | "return_workflow_step_tag": "", | ||
+ | "return_execution_time": "282", | ||
+ | "metadata_json__": "GENERIC_METADATA_RESPONSE" | ||
+ | } | ||
+ | </code> | ||