CN106569785B - Method and device for generating job form - Google Patents

Method and device for generating job form Download PDF

Info

Publication number
CN106569785B
CN106569785B CN201510649855.1A CN201510649855A CN106569785B CN 106569785 B CN106569785 B CN 106569785B CN 201510649855 A CN201510649855 A CN 201510649855A CN 106569785 B CN106569785 B CN 106569785B
Authority
CN
China
Prior art keywords
task data
graphical
task
displaying
job
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201510649855.1A
Other languages
Chinese (zh)
Other versions
CN106569785A (en
Inventor
柯敏
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Alibaba Group Holding Ltd
Original Assignee
Alibaba Group Holding Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Alibaba Group Holding Ltd filed Critical Alibaba Group Holding Ltd
Priority to CN201510649855.1A priority Critical patent/CN106569785B/en
Publication of CN106569785A publication Critical patent/CN106569785A/en
Application granted granted Critical
Publication of CN106569785B publication Critical patent/CN106569785B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The application aims to provide a method and equipment for generating a job form. Specifically, an input operation of task data in any form of a job is acquired; displaying the task data in the form according to the input operation of the task data; and generating and displaying corresponding task data in another form according to the task data in the form. Compared with the prior art, the technical scheme of the application displays the job content in a mode of code content and visual graphics, after task data in any form in the job is obtained, graphical task data and corresponding coded task data can be displayed simultaneously according to the corresponding relation, and a user can visually check the execution sequence of each task in the job, reduce the error rate of the content of the job form and simplify the operation by simultaneously displaying the graphical task data and the corresponding coded task data.

Description

Method and device for generating job form
Technical Field
The present application relates to the field of computers, and in particular, to a method and an apparatus for generating a job form.
Background
For users who need to use some batch computing services, a job form needs to be submitted on a cloud platform, and complex contents such as task execution sequence and file call need to be included. The job refers to a section of code content which is written and made by a user to achieve a certain purpose and is used for execution sequence, file call, file connection and the like. Each job is often composed of multiple tasks, and the execution of each job requires multiple tasks to resolve the execution. In the prior art, when a job form is generated, only code content input by a user is displayed, the execution sequence of tasks in the job and parameter information of each task are directly contained in the code content, and if checking or modifying is required, searching is required from a large number of codes, so that the operation is complex and the error rate is high.
Disclosure of Invention
The application aims to provide a method and equipment for generating a job form, so as to solve the problems of complex operation and high error rate in the prior art.
In order to achieve the above object, the present application provides a job form generation method, including:
the method comprises the steps of obtaining input operation of task data in any form in operation, wherein the task data in any form comprises graphical task data or coding task data;
displaying the task data in the form according to the input operation of the task data;
and generating and displaying corresponding task data in another form according to the task data in the form.
Further, the input operation of acquiring task data in any form of job includes: acquiring input operation of graphical task data in operation;
displaying the form of task data according to the input operation of the task data, comprising: displaying the graphical task data according to the input operation of the graphical task data;
generating and displaying corresponding task data in another form according to the task data in the form, wherein the task data in another form comprises the following steps: and generating and displaying corresponding coded task data according to the graphical task data.
Further, the graphical task data comprises a visual graph of the task and task information;
displaying the graphical task data according to the input operation of the graphical task data, wherein the displaying comprises the following steps: displaying a visual graph of the graphical task data according to the input operation of the graphical task data;
generating and displaying corresponding coded task data according to the graphical task data, wherein the method comprises the following steps: and generating and displaying corresponding coded task data according to the task information of the graphical task data.
Further, after displaying at least one graphic task data, the method further comprises:
acquiring the deleting operation of the graphical task data;
deleting the corresponding graphical task data according to the deleting operation of the graphical task data;
and updating the corresponding coding task data according to the deleted graphical task data.
Further, after displaying at least two graphic task data, the method further comprises:
acquiring input operation of a task execution sequence;
displaying sequence indication marks among the graphical task data according to the input operation of the task execution sequence;
and updating the coding task data according to the sequence indication mark.
Further, after displaying at least two graphic task data, the method further comprises:
acquiring the deleting operation of the graphical task data;
deleting the corresponding graphical task data and the sequence indication marks related to the graphical task data according to the deleting operation of the graphical task data;
and updating the corresponding coded task data according to the deleted graphical task data and the sequence indication mark.
Further, after displaying at least two graphic task data, the method further comprises:
obtaining the sequencing operation of the graphical task data;
and adjusting the display position of the graphical task data according to the sequencing operation of the graphical task data.
Further, the input operation of acquiring task data in any form of job includes: acquiring input operation of coded task data in operation;
displaying the form of task data according to the input operation of the task data, comprising: displaying the coding task data according to the input operation of the coding task data;
generating and displaying corresponding task data in another form according to the task data in the form, wherein the task data in another form comprises the following steps: and generating and displaying corresponding graphical task data according to the coded task data.
Further, before an input operation for acquiring task data in any form of a job, the method further includes:
a visual editing area for displaying graphical task data and a code editing area for displaying coded task data are provided.
Further, after displaying all task data of the job, the method further includes:
and acquiring the submission operation of the job form, and submitting the job according to the submission operation.
According to another aspect of the present application, there is also provided a job form generation apparatus, including:
the operation acquisition device is used for acquiring the input operation of any form of task data in the operation, wherein the task data in any form comprises graphical task data or coding task data;
the task display device is used for displaying the task data in the form according to the input operation of the task data; and generating and displaying corresponding task data in another form according to the task data in the form.
Further, the operation acquisition device is used for acquiring input operation of graphical task data in the operation;
the task display device includes:
the graphical display module is used for displaying the graphical task data according to the input operation of the graphical task data;
and the code display module is used for generating and displaying corresponding coded task data according to the graphical task data.
Further, the graphical task data comprises a visual graph of the task and task information;
the graphic display module is used for displaying a visual graphic of the graphical task data according to the input operation of the graphical task data;
and the code display module is used for generating and displaying corresponding coded task data according to the task information of the graphical task data.
Further, the operation acquiring device is further configured to acquire a deleting operation of the graphical task data after displaying the at least one graphical task data;
the graphic display module is also used for deleting the corresponding graphic task data according to the deleting operation of the graphic task data;
and the code display module is also used for updating the corresponding coded task data according to the deleted graphical task data.
Further, the operation acquiring device is further configured to acquire an input operation of a task execution sequence after displaying at least two pieces of graphical task data;
the graphic display module is further used for displaying sequence indication marks among the graphic task data according to the input operation of the task execution sequence;
the code display module is further used for updating the coding task data according to the sequence indication mark.
Further, the operation acquiring device is further configured to acquire a deleting operation of the graphical task data after displaying the at least two graphical task data;
the graphic display module is also used for deleting the corresponding graphic task data and the sequence indication mark related to the graphic task data according to the deleting operation of the graphic task data;
and the code display module is also used for updating the corresponding coded task data according to the deleted graphical task data and the sequence indication mark.
Further, the operation acquiring device is further configured to acquire a sorting operation of the graphical task data after displaying the at least two graphical task data;
and the graphic display module is also used for adjusting the display position of the graphic task data according to the sequencing operation of the graphic task data.
Further, the operation acquisition device is used for acquiring input operation of coded task data in the operation; (ii) a
The task display device includes:
the graphic display module is used for displaying the coding task data according to the input operation of the coding task data;
and the code display module is used for generating and displaying corresponding graphical task data according to the coded task data.
Further, the task display device is also used for providing a visual editing area for displaying graphical task data and a code editing area for displaying coded task data before the input operation of acquiring any form of task data in the job.
Further, the operation acquiring device is further configured to acquire a submission operation of a job form after all task data of the job are displayed;
the apparatus further comprises:
and the job submitting device is used for submitting the job according to the submitting operation.
Compared with the prior art, the technical scheme of the application displays the job content in a mode of code content and visual graphics, after task data in any form in the job is obtained, graphical task data and corresponding coded task data can be displayed simultaneously according to the corresponding relation, and a user can visually check the execution sequence of each task in the job, reduce the error rate of the content of the job form and simplify the operation by simultaneously displaying the graphical task data and the corresponding coded task data.
Drawings
Other features, objects and advantages of the present application will become more apparent upon reading of the following detailed description of non-limiting embodiments thereof, made with reference to the accompanying drawings in which:
fig. 1 is a flowchart of a job form generation method according to an embodiment of the present application;
FIG. 2 is a display interface involved in performing job form generation in an embodiment of the present application;
FIG. 3 is a flowchart of a job form generation method under a first input mode in an embodiment of the present application;
FIG. 4(a) is a reference diagram of displaying graphical task data according to an input operation in an embodiment of the present application;
FIG. 4(b) is a reference diagram of displaying coded task data according to an input operation in the embodiment of the present application;
fig. 5 is a flowchart of a process of deleting graphical task data in the job form generation method;
fig. 6 is a flowchart of processing for setting an execution sequence for tasks in the job form generation method;
fig. 7 is a flowchart of a process of deleting graphical task data including an execution sequence in the job form generation method;
FIG. 8(a) is a display state reference diagram of sequence indicators between various graphic task data in the embodiment of the present application;
FIG. 8(b) is a reference diagram of a display state after the graphical task data is sorted according to the embodiment of the present application;
FIG. 9 is a flowchart of a job form generation method under a second input mode in an embodiment of the present application;
fig. 10 is a schematic structural diagram of a job form generation apparatus according to an embodiment of the present application;
fig. 11 is a schematic structural diagram of a preferred job form generation apparatus according to an embodiment of the present application;
the same or similar reference numbers in the drawings identify the same or similar elements.
Detailed Description
The present application is described in further detail below with reference to the attached figures.
In a typical configuration of the present application, the terminal, the device serving the network, and the trusted party each include one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
The memory may include forms of volatile memory in a computer readable medium, Random Access Memory (RAM) and/or non-volatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM). Memory is an example of a computer-readable medium.
Computer-readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), Static Random Access Memory (SRAM), Dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), Read Only Memory (ROM), Electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), Digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape, magnetic disk storage or other magnetic storage devices, or any other non-transmission medium that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include non-transitory computer readable media (transient media), such as modulated data signals and carrier waves.
Fig. 1 illustrates a job form generation method provided in an embodiment of the present application, where the method includes the following steps:
step S101, acquiring input operation of task data in any form in a job, wherein the task data in any form comprises graphical task data or coding task data;
step S102, displaying the task data in the form according to the input operation of the task data;
and step S103, generating and displaying corresponding task data in another form according to the task data in the form.
The graphical task data refers to a task presentation mode containing visual graphics, for example, a task is represented by a marked circle; accordingly, coding task data refers to a way to present tasks through program code. According to the technical scheme, the operation content is displayed in a code content and visual graph mode, after task data in any form in the operation is obtained, graphical task data and corresponding coded task data can be displayed simultaneously according to the corresponding relation, and a user can visually check the execution sequence of each task in the operation by simultaneously displaying the graphical task data and the corresponding coded task data, so that the error rate of the content of the operation form is reduced, and the operation is simplified.
In order to facilitate user operation and improve the usability of the generation of the job form, before the input operation of acquiring any form of task data in the job, the method further comprises the following steps: a visual editing area for displaying graphical task data and a code editing area for displaying coded task data are provided. By providing the areas for displaying the task data in the specific form for the user, the user can conveniently check the content of the corresponding part, so that the generation and submission of the job form are more accurate and efficient.
Fig. 2 shows a display interface provided by the job form generation method, in which an area 2A is a visual editing area, and an area 2B is a code editing area. The visual editing area 2A includes a toolbar 2E for fast inputting a visual graphic representing a task, which facilitates the user to input graphical task data and the input operation of obtaining the graphical task data. In addition to the above two areas, a job information area 2C and a task information area 2D may be included for providing input and display of job information and task information, respectively. The job information includes job name and job label, etc. for identifying specific job, and the task information includes task name and other relevant parameters required in executing task, such as number of starting instances, use mirror image, program parameters, etc. When inputting task data, it is possible for a user to input in two ways. Firstly, graphical task data is input in a visual editing area. And secondly, inputting coding task data in the code editing area.
For the first way of inputting graphical task data in the visual editing area, the processing flow of the job form generation method is as shown in fig. 3, and includes:
step S301, acquiring input operation of graphical task data in a job;
step S302, displaying the graphical task data according to the input operation of the graphical task data;
and step S303, generating and displaying corresponding coded task data according to the graphical task data.
When the user only inputs the graphical task data, the graphical task data can be displayed, and the corresponding coded task data can be automatically generated. Generally, the graphical task data includes a visual graph of the task and task information, and taking the interface shown in fig. 2 as an example, the input operation of the graphical task data is: clicking a button for a new task in the toolbar 2E and dragging an appearing visual graphic to a specific position in the visual editing area, and then inputting task information for the task in the task information area 2D.
Therefore, after the input operation of the graphical task data including the visual graph and the task information is acquired, the displaying the graphical task data according to the input operation of the graphical task data in step S302 specifically includes: and displaying the visual graph of the graphical task data according to the input operation of the graphical task data. For example, when the aforementioned input operation is performed to drag the appearing visualization graph to a specific position in the visualization editing area, the visualization graph corresponding to the task T1 may be displayed in the visualization editing area, and the display interface may refer to fig. 4 (a). In step S303, generating and displaying corresponding coded task data according to the graphical task data, specifically including: and generating and displaying corresponding coded task data according to the task information of the graphical task data. For example, when the input operation is performed until the task information of the task is input in the task information area, the program code corresponding to the task is displayed in the code editing area, and at this time, the display interface may refer to fig. 4 (b). Here, it should be understood by those skilled in the art that, since the input operation of the graphical task data is only an example, if different input modes are adopted, there may be no strict execution sequence between the step S302 and the step S303. For example, the toolbar presets each task graph containing task information, and at this time, the input operation of the graphical task data is as follows: the user may select a task graphic in the toolbar 2E and drag the selected task graphic to a specific position in the visual editing area. Since the visual graphics of the task and the task information are obtained simultaneously, the step S302 and the step S303 can also be executed synchronously.
Further, after displaying at least one graphic task data, the graphic task data may be deleted, and the specific processing steps of the deletion process are as shown in fig. 5, and include:
step S501, obtaining the deleting operation of the graphical task data;
step S502, deleting the corresponding graphical task data according to the deleting operation of the graphical task data;
and step S503, updating the corresponding coded task data according to the deleted graphical task data.
In this embodiment, the deleting operation of the graphical task data performed by the user specifically includes selecting a visual graph representing a task in the visual editing area, and clicking a delete button in the toolbar. After the deletion operation for acquiring the graphic task data is acquired, the corresponding visual graph is deleted, and the program code is updated (i.e., the program code of the corresponding part is deleted).
In practical application, after at least two pieces of graphical task data are displayed in the visual editing area, the execution sequence of the graphical task data needs to be specified in a certain way, so that a user can intuitively know the execution sequence among tasks in a job. Therefore, the embodiment provides a way to set the execution sequence, and the specific steps are shown in fig. 6, and include:
in step S601, an input operation of a task execution sequence is acquired. In this embodiment, the input operation of the task execution sequence performed by the user specifically includes: and dragging the connecting arrow to the display position of the visual graph of the other task at the display position of the visual graph of the one task.
Step S602, displaying a sequence indication mark between the graphical task data according to the input operation of the task execution sequence. The sequence indicator is an arrow connected between the visual graphics of the two tasks, and the arrow direction of the sequence indicator indicates the execution sequence, for example, the arrow connected between the task T1 and the task T2 in fig. 8(a) indicates that the task T1 is executed first and then the task T2 is executed.
Step S603, updating the coded task data according to the sequence indication flag. After the arrow connects the visual graphics of the two tasks, the code editing area automatically adds corresponding program codes, so that the execution sequence of the program codes is consistent with the direction of the arrow.
In addition, the execution order of the tasks may be set in other manners, for example, the execution order of the tasks may be set from top to bottom and from left to right according to the display position of the visual graph of the tasks, that is, the task displayed in the upper left corner of the visual editing area is executed first, and the task displayed in the lower right corner of the visual editing area is executed last. It should be understood by those skilled in the art that the above-described manner of setting the execution sequence is merely an example, and other existing or future manners that may occur to those skilled in the art may be applicable to the present invention, and are included in the scope of the present invention.
When sequence indication marks are displayed among the graphic task data, deleting a certain graphic task data may also affect the sequence indication mark related to the certain graphic task data, so that a processing flow for deleting the graphic task data is shown in fig. 7, and specifically includes:
step S701, a deletion operation of the graphic task data is acquired. In this embodiment, the deleting operation of the graphical task data performed by the user may be: and displaying the visual graph of the task in the visual editing area, and clicking a delete button in the toolbar.
Step S702, deleting the corresponding graphical task data and the sequence indication mark related to the graphical task data according to the deleting operation of the graphical task data. For the way of using an arrow as the sequence indicator, the sequence indicator related to the graphical task data refers to an arrow connected to the visual graphics of a certain task in the visual editing area, and generally includes all arrows leading out from and pointing to the visual graphics.
And step S703, updating the corresponding coded task data according to the deleted graphical task data and the sequence indication mark. And according to the changed content in the visual editing area, correspondingly adjusting the program codes in the code editing area.
In practical applications, for complex jobs, the number of tasks involved is often large, and the execution sequence between the tasks may also be complex. If the graphical task data is not displayed according to a certain organization rule, readability of display content in the visual editing area is reduced, and a user is prevented from rapidly acquiring needed information. In order to avoid solving the above problem, the job form generation method provided in the embodiment of the present application further provides a sorting function, and after at least two pieces of graphical task data are displayed, obtains a sorting operation of the graphical task data, and then adjusts a display position of the graphical task data according to the sorting operation of the graphical task data. The sorting operation of the graphical task data can be that a user clicks a sorting button in a toolbar, and the mode of adjusting the display position of the graphical task data can be set according to actual requirements.
For example, the job includes 5 tasks T1 to T5, starting with the first task and performing adjustment according to the branch structure of the execution order between the subsequent tasks, and the display interface shown in fig. 8(b) is taken as an example, and after the execution of task T1, there are branches of 3 subsequent tasks, which are task T2, task T3, and task T5, respectively, and the subsequent execution task of task T3 is task T4. In this case, task T1, task T2 may be displayed in the first row, task T3, task T4 may be displayed in the second row, task T5 may be displayed in the third row, and task T2, task T3, and task T4 may be aligned vertically, whereby execution order information between all tasks in the job may be intuitively obtained. It should be understood by those skilled in the art that the above-mentioned manner for adjusting the display position is merely an example, and other existing or future manners that may occur may be applicable to the present invention, and are included in the scope of the present invention and are herein incorporated by reference.
In addition, as for the second mode of inputting coded task data in the code editing area, the process flow of the job form generation method, as shown in fig. 9, includes:
step S901, acquiring an input operation of coding task data in a job, where the input operation is to input a program code in a code editing area through a keyboard input device, and may be directly input, or copy a program code written in advance to the code editing area.
And step S902, displaying the coded task data according to the input operation of the coded task data, wherein the coded task data is the input program code.
And step S903, generating and displaying corresponding graphical task data according to the coded task data, wherein after the program code is input, a corresponding visual graph is automatically generated in the visual editing area according to the program code, and task information contained in a specific position in the program code is also displayed in the task information area.
After the input work of all task data is completed, an interface displays all task data (including graphical task data and coding task data) of the job, and at this time, the method for generating the job form further includes: and obtaining the submission operation of the job form, and submitting the job according to the submission operation, thereby completing the submission of the generated job form to the cloud platform.
Fig. 10 illustrates a job form generation apparatus provided in an embodiment of the present application, and the apparatus includes an operation acquisition device 1010 and a task display device 1020. Specifically, the operation acquiring device 1010 is configured to acquire an input operation of any form of task data in a job, where the any form of task data includes graphical task data or coded task data; the task display device 1020 is used for displaying the task data in the form according to the input operation of the task data; and generating and displaying corresponding task data in another form according to the task data in the form.
The graphical task data refers to a task presentation mode containing visual graphics, for example, a task is represented by a marked circle; accordingly, coding task data refers to a way to present tasks through program code. According to the technical scheme, the operation content is displayed in a code content and visual graph mode, after task data in any form in the operation is obtained, graphical task data and corresponding coded task data can be displayed simultaneously according to the corresponding relation, and a user can visually check the execution sequence of each task in the operation by simultaneously displaying the graphical task data and the corresponding coded task data, so that the error rate of the content of the operation form is reduced, and the operation is simplified.
Here, those skilled in the art should understand that the above devices may include, but are not limited to, user devices, network devices, or devices formed by integrating user devices and network devices through a network. The user equipment comprises but is not limited to a personal computer, a touch terminal and the like; including but not limited to implementations such as a network host, a single network server, multiple sets of network servers, or a cloud-computing-based collection of computers. Here, the Cloud is made up of a large number of hosts or web servers based on Cloud Computing (Cloud Computing), which is a type of distributed Computing, one virtual computer consisting of a collection of loosely coupled computers. Preferably, the device may also be software running on a user device or a network device, such that a user generates a job form mediated by the user device or the network device. It will be understood by those skilled in the art that the above-described device 1 and touch terminal are merely examples, and other existing or future devices 1 or touch terminals may be suitable for use with the present invention and are included within the scope of the present invention and are hereby incorporated by reference.
In order to facilitate user operations and improve the ease of job form generation, the task display device 1020 is further configured to provide a visual editing area for displaying graphical task data and a code editing area for displaying coded task data before an input operation for acquiring any form of task data in a job. By providing the areas for displaying the task data in the specific form for the user, the user can conveniently check the content of the corresponding part, so that the generation and submission of the job form are more accurate and efficient. For the display requirements at least divided into the visual editing area and the code editing area, the task display device may specifically include a graphic display module and a code display module, which are respectively used for displaying the content of the visual editing area and the content of the code editing area.
Fig. 2 shows a display interface provided by the task display device 1020, in which an area 2A is a visual editing area, and an area 2B is a code editing area. The visual editing area 2A includes a toolbar 2E for fast inputting a visual graphic representing a task, which facilitates the user to input graphical task data and the input operation of obtaining the graphical task data. In addition to the above two areas, a job information area 2C and a task information area 2D may be included for providing input and display of job information and task information, respectively. The job information includes job name and job label, etc. for identifying specific job, and the task information includes task name and other relevant parameters required in executing task, such as number of starting instances, use mirror image, program parameters, etc. When inputting task data, it is possible for a user to input in two ways. Firstly, graphical task data is input in a visual editing area. And secondly, inputting coding task data in the code editing area.
For the first way of inputting graphical task data in the visual editing area, in the apparatus, the operation acquiring means 1010 is used for acquiring an input operation of graphical task data in a job. The graphic display module of the task display device 1020 is configured to display the graphic task data according to the input operation of the graphic task data, and the code display module is configured to generate and display corresponding coded task data according to the graphic task data.
When the user only inputs the graphical task data, the graphical task data can be displayed, and the corresponding coded task data can be automatically generated. Generally, the graphical task data includes a visual graph of the task and task information, and taking the interface shown in fig. 2 as an example, the input operation of the graphical task data is: clicking a button for a new task in the toolbar 2E and dragging an appearing visual graphic to a specific position in the visual editing area, and then inputting task information for the task in the task information area 2D.
Therefore, after the input operation of the graphical task data containing the visual graph and the task information is acquired, the graph display module is used for displaying the visual graph of the graphical task data according to the input operation of the graphical task data. For example, when the aforementioned input operation is performed to drag the appearing visualization graph to a specific position in the visualization editing area, the visualization graph corresponding to the task T1 may be displayed in the visualization editing area, and the display interface may refer to fig. 4 (a). And the code display module is used for generating and displaying corresponding coded task data according to the task information of the graphical task data. For example, when the input operation is performed until the task information of the task is input in the task information area, the program code corresponding to the task is displayed in the code editing area, and at this time, the display interface may refer to fig. 4 (b). Here, it should be understood by those skilled in the art that, since the above input operation of the graphic task data is only an example, if different input modes are adopted, there may be no strict processing order between the graphic display module and the code display module. For example, the toolbar presets each task graph containing task information, and at this time, the input operation of the graphical task data is as follows: the user may select a task graphic in the toolbar 2E and drag the selected task graphic to a specific position in the visual editing area. Because the visual graph of the task and the task information are obtained simultaneously, the graph display module and the code display module can synchronously execute corresponding processing.
Further, after displaying at least one graphic task data, the graphic task data may be deleted, in which case the operation acquiring device 1010 is further configured to acquire a deletion operation of the graphic task data after displaying at least one graphic task data. The graphic display module of the task display device 1020 is further configured to delete the corresponding graphic task data according to the deletion operation of the graphic task data, and the code display module is further configured to update the corresponding coded task data according to the deleted graphic task data.
In this embodiment, the deleting operation of the graphical task data performed by the user specifically includes selecting a visual graph representing a task in the visual editing area, and clicking a delete button in the toolbar. After the deletion operation for acquiring the graphic task data is acquired, the corresponding visual graph is deleted, and the program code is updated (i.e., the program code of the corresponding part is deleted).
In practical application, after at least two pieces of graphical task data are displayed in the visual editing area, the execution sequence of the graphical task data needs to be specified in a certain way, so that a user can intuitively know the execution sequence among tasks in a job. Therefore, the embodiment provides a way of setting an execution sequence, specifically:
the operation acquiring means 1010 is further configured to acquire an input operation of a task execution sequence after displaying at least two graphical task data. In this embodiment, the input operation of the task execution sequence performed by the user specifically includes: and dragging the connecting arrow to the display position of the visual graph of the other task at the display position of the visual graph of the one task.
Correspondingly, the graphic display module of the task display device 1020 is further configured to display a sequence indicator between the graphic task data according to the input operation of the task execution sequence. The sequence indicator is an arrow connected between the visual graphics of the two tasks, and the arrow direction of the sequence indicator indicates the execution sequence, for example, the arrow connected between the task T1 and the task T2 in fig. 8(a) indicates that the task T1 is executed first and then the task T2 is executed.
The code display module of the task display device 1020 is further configured to update the coded task data according to the sequence indication flag. After the arrow connects the visual graphics of the two tasks, the code editing area automatically adds corresponding program codes, so that the execution sequence of the program codes is consistent with the direction of the arrow.
In addition, the execution order of the tasks may be set in other manners, for example, the execution order of the tasks may be set from top to bottom and from left to right according to the display position of the visual graph of the tasks, that is, the task displayed in the upper left corner of the visual editing area is executed first, and the task displayed in the lower right corner of the visual editing area is executed last. It should be understood by those skilled in the art that the above-described manner of setting the execution sequence is merely an example, and other existing or future manners that may occur to those skilled in the art may be applicable to the present invention, and are included in the scope of the present invention.
When the sequence indication marks are displayed among the graphic task data, deleting a certain graphic task data may also affect the sequence indication marks related to the certain graphic task data, so that the operation acquiring device 1010 is further used for acquiring the deleting operation of the graphic task data after at least two graphic task data are displayed.
The graphic display module of the task display device 1020 is further configured to delete the corresponding graphic task data according to the deletion operation of the graphic task data. For the way of using an arrow as the sequence indicator, the sequence indicator related to the graphical task data refers to an arrow connected to the visual graphics of a certain task in the visual editing area, and generally includes all arrows leading out from and pointing to the visual graphics.
The graphic display module of the task display device 1020 is further configured to update the corresponding coded task data according to the deleted graphic task data and the sequence indicator. And according to the changed content in the visual editing area, correspondingly adjusting the program codes in the code editing area.
In practical applications, for complex jobs, the number of tasks involved is often large, and the execution sequence between the tasks may also be complex. If the graphical task data is not displayed according to a certain organization rule, readability of display content in the visual editing area is reduced, and a user is prevented from rapidly acquiring needed information. In order to avoid solving the above problem, the job form generating apparatus provided in the embodiment of the present application further provides a sorting function, and specifically, the operation obtaining device 1010 is further configured to obtain a sorting operation of the graphical task data after displaying at least two graphical task data. The graphic display module of the task display device 1020 is further configured to adjust a display position of the graphic task data according to the sorting operation of the graphic task data. The sorting operation of the graphical task data can be that a user clicks a sorting button in a toolbar, and the mode of adjusting the display position of the graphical task data can be set according to actual requirements.
For example, the job includes 5 tasks T1 to T5, starting with the first task and performing adjustment according to the branch structure of the execution order between the subsequent tasks, and the display interface shown in fig. 8(b) is taken as an example, and after the execution of task T1, there are branches of 3 subsequent tasks, which are task T2, task T3, and task T5, respectively, and the subsequent execution task of task T3 is task T4. In this case, task T1, task T2 may be displayed in the first row, task T3, task T4 may be displayed in the second row, task T5 may be displayed in the third row, and task T2, task T3, and task T4 may be aligned vertically, whereby execution order information between all tasks in the job may be intuitively obtained. It should be understood by those skilled in the art that the above-mentioned manner for adjusting the display position is merely an example, and other existing or future manners that may occur may be applicable to the present invention, and are included in the scope of the present invention and are herein incorporated by reference.
Further, as for the second way of inputting coded task data in the code editing area, in the apparatus, the operation acquisition means 1010 is used for acquiring an input operation of coded task data in a job. The graphic display module of the task display device 1020 is configured to display the coded task data according to the input operation of the coded task data, and the code display module is configured to generate and display corresponding graphical task data according to the coded task data. After the program code is input, the corresponding visual graph is automatically generated in the visual editing area according to the program code, and the task information contained in the specific position in the program code is also displayed in the task information area.
After the input work of all task data is completed, the interface displays all task data (including graphical task data and coding task data) of the job, and the generated job form can be submitted to the cloud platform. In order to implement the above functions, the present application also provides a preferred job form generating apparatus, which has a structure as shown in fig. 11, and includes a job submitting device 1030 in addition to the operation acquiring device 1010 and the task displaying device 1020 of fig. 10. The operation acquiring device 1010 is further configured to acquire a submission operation of a job form after all task data of the job are displayed; the job submitting device 1030 is configured to submit the job according to the submitting operation, so as to complete submitting the generated job form to the cloud platform.
To sum up, according to the technical scheme of the application, the operation content is displayed in a mode of code content and visual graphics, after task data in any form in the operation is acquired, graphical task data and corresponding coded task data can be displayed simultaneously according to the corresponding relation, and through the mode of simultaneously displaying the graphical task data and the corresponding coded task data, a user can visually check the execution sequence of each task in the operation, the error rate of the content of the operation form is reduced, and the operation is simplified.
It should be noted that the present application may be implemented in software and/or a combination of software and hardware, for example, implemented using Application Specific Integrated Circuits (ASICs), general purpose computers or any other similar hardware devices. In one embodiment, the software programs of the present application may be executed by a processor to implement the steps or functions described above. Likewise, the software programs (including associated data structures) of the present application may be stored in a computer readable recording medium, such as RAM memory, magnetic or optical drive or diskette and the like. Additionally, some of the steps or functions of the present application may be implemented in hardware, for example, as circuitry that cooperates with the processor to perform various steps or functions.
In addition, some of the present application may be implemented as a computer program product, such as computer program instructions, which when executed by a computer, may invoke or provide methods and/or techniques in accordance with the present application through the operation of the computer. Program instructions which invoke the methods of the present application may be stored on a fixed or removable recording medium and/or transmitted via a data stream on a broadcast or other signal-bearing medium and/or stored within a working memory of a computer device operating in accordance with the program instructions. An embodiment according to the present application comprises an apparatus comprising a memory for storing computer program instructions and a processor for executing the program instructions, wherein the computer program instructions, when executed by the processor, trigger the apparatus to perform a method and/or a solution according to the aforementioned embodiments of the present application.
It will be evident to those skilled in the art that the present application is not limited to the details of the foregoing illustrative embodiments, and that the present application may be embodied in other specific forms without departing from the spirit or essential attributes thereof. The present embodiments are therefore to be considered in all respects as illustrative and not restrictive, the scope of the application being indicated by the appended claims rather than by the foregoing description, and all changes which come within the meaning and range of equivalency of the claims are therefore intended to be embraced therein. Any reference sign in a claim should not be construed as limiting the claim concerned. Furthermore, it is obvious that the word "comprising" does not exclude other elements or steps, and the singular does not exclude the plural. A plurality of units or means recited in the apparatus claims may also be implemented by one unit or means in software or hardware.

Claims (16)

1. A job form generation method, wherein the method comprises:
acquiring input operation of task data in any form in operation, wherein the task data in any form is graphical task data or coding task data;
displaying the task data in the form according to the input operation of the task data;
generating and displaying corresponding task data in another form according to the task data in the form;
the method further comprises the following steps:
after displaying at least two pieces of graphical task data, acquiring input operation of a task execution sequence; displaying sequence indication marks among the graphical task data according to the input operation of the task execution sequence;
after displaying at least two pieces of graphical task data, obtaining the sequencing operation of the graphical task data; and adjusting the display position of the graphical task data according to the sequencing operation of the graphical task data.
2. The method of claim 1, wherein the input operation to obtain task data in any form of a job comprises: acquiring input operation of graphical task data in operation;
displaying the form of task data according to the input operation of the task data, comprising: displaying the graphical task data according to the input operation of the graphical task data;
generating and displaying corresponding task data in another form according to the task data in the form, wherein the task data in another form comprises the following steps: and generating and displaying corresponding coded task data according to the graphical task data.
3. The method of claim 2, wherein the graphical task data includes a visual graph of tasks and task information;
displaying the graphical task data according to the input operation of the graphical task data, wherein the displaying comprises the following steps: displaying a visual graph of the graphical task data according to the input operation of the graphical task data;
generating and displaying corresponding coded task data according to the graphical task data, wherein the method comprises the following steps: and generating and displaying corresponding coded task data according to the task information of the graphical task data.
4. The method of claim 2 or 3, wherein after displaying at least one graphical task data, further comprising:
acquiring the deleting operation of the graphical task data;
deleting the corresponding graphical task data according to the deleting operation of the graphical task data;
and updating the corresponding coding task data according to the deleted graphical task data.
5. The method of claim 1, wherein after displaying at least two graphical task data, further comprising:
acquiring the deleting operation of the graphical task data;
deleting the corresponding graphical task data and the sequence indication marks related to the graphical task data according to the deleting operation of the graphical task data;
and updating the corresponding coded task data according to the deleted graphical task data and the sequence indication mark.
6. The method of claim 1, wherein the input operation to obtain task data in any form of a job comprises: acquiring input operation of coded task data in operation;
displaying the form of task data according to the input operation of the task data, comprising: displaying the coding task data according to the input operation of the coding task data;
generating and displaying corresponding task data in another form according to the task data in the form, wherein the task data in another form comprises the following steps: and generating and displaying corresponding graphical task data according to the coded task data.
7. The method of claim 1, wherein prior to an input operation to obtain task data in any form of a job, further comprising:
a visual editing area for displaying graphical task data and a code editing area for displaying coded task data are provided.
8. The method of claim 1, wherein after displaying all task data for the job, further comprising:
and acquiring the submission operation of the job form, and submitting the job according to the submission operation.
9. A job form generation apparatus, wherein the apparatus comprises:
the operation acquisition device is used for acquiring the input operation of any form of task data in the operation, wherein the task data in any form is graphical task data or coding task data;
the task display device is used for displaying the task data in the form according to the input operation of the task data; generating and displaying corresponding task data in another form according to the task data in the form;
the operation acquisition device is also used for acquiring the input operation of the task execution sequence after displaying at least two pieces of graphical task data; after displaying at least two pieces of graphical task data, obtaining the sequencing operation of the graphical task data;
the task display device is further configured to display a sequence indication mark between the graphical task data according to the input operation of the task execution sequence, update the coded task data according to the sequence indication mark, and adjust the display position of the graphical task data according to the sequencing operation of the graphical task data.
10. The apparatus according to claim 9, wherein the operation acquiring means is configured to acquire an input operation of graphical task data in a job;
the task display device includes:
the graphical display module is used for displaying the graphical task data according to the input operation of the graphical task data;
and the code display module is used for generating and displaying corresponding coded task data according to the graphical task data.
11. The device of claim 10, wherein the graphical task data includes a visual graph of tasks and task information;
the graphic display module is used for displaying a visual graphic of the graphical task data according to the input operation of the graphical task data;
and the code display module is used for generating and displaying corresponding coded task data according to the task information of the graphical task data.
12. The device according to claim 10 or 11, wherein the operation acquiring means is further configured to acquire a deletion operation of the graphical task data after displaying the at least one graphical task data;
the graphic display module is also used for deleting the corresponding graphic task data according to the deleting operation of the graphic task data;
and the code display module is also used for updating the corresponding coded task data according to the deleted graphical task data.
13. The device of claim 9, wherein the operation acquiring means is further configured to acquire a deletion operation of the graphical task data after displaying at least two graphical task data;
the graphic display module is also used for deleting the corresponding graphic task data and the sequence indication marks related to the graphic task data according to the deleting operation of the graphic task data;
and the code display module is also used for updating the corresponding coded task data according to the deleted graphical task data and the sequence indication mark.
14. The apparatus according to claim 9, wherein the operation acquisition means is configured to acquire an input operation of coded task data in a job;
the task display device includes:
the graphic display module is used for displaying the coding task data according to the input operation of the coding task data;
and the code display module is used for generating and displaying corresponding graphical task data according to the coded task data.
15. The apparatus according to claim 9, wherein the task display device is further configured to provide a visual editing area for displaying graphical task data and a code editing area for displaying coded task data before an input operation for acquiring task data in any form of a job.
16. The apparatus according to claim 9, wherein the operation acquisition means is further configured to acquire a submission operation of a job form after all task data of the job are displayed;
the apparatus further comprises:
and the job submitting device is used for submitting the job according to the submitting operation.
CN201510649855.1A 2015-10-09 2015-10-09 Method and device for generating job form Active CN106569785B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510649855.1A CN106569785B (en) 2015-10-09 2015-10-09 Method and device for generating job form

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510649855.1A CN106569785B (en) 2015-10-09 2015-10-09 Method and device for generating job form

Publications (2)

Publication Number Publication Date
CN106569785A CN106569785A (en) 2017-04-19
CN106569785B true CN106569785B (en) 2021-03-09

Family

ID=58507783

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510649855.1A Active CN106569785B (en) 2015-10-09 2015-10-09 Method and device for generating job form

Country Status (1)

Country Link
CN (1) CN106569785B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110427260B (en) * 2019-08-09 2022-02-25 中国工商银行股份有限公司 Host job scheduling method, device and system

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090125877A1 (en) * 2007-10-22 2009-05-14 Oracle International Corporation Extensible code visualization
CN101464799A (en) * 2009-01-16 2009-06-24 天津大学 MPI parallel programming system based on visual modeling and automatic skeleton code generation method
CN102360296A (en) * 2011-10-20 2012-02-22 北京金和软件股份有限公司 WEB-based online form development tool
CN102646035A (en) * 2012-02-17 2012-08-22 南京南瑞继保电气有限公司 Visualized code generation method based on combination of API (application programming interface) and script definition
CN103197929A (en) * 2013-03-25 2013-07-10 中国科学院软件研究所 System and method for graphical programming facing children
CN103488477A (en) * 2013-09-02 2014-01-01 用友软件股份有限公司 Visual editing system and visual editing method of JAVA interface

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1737755A (en) * 2005-06-13 2006-02-22 浙江大学 Modeling and code generating method of embedded real-time operating system
CN103136406B (en) * 2011-12-03 2015-12-16 南京南瑞继保电气有限公司 The method of visualization applications simulations function code
CN108345451B (en) * 2014-12-30 2020-07-14 北京纵横机电技术开发公司 Continuous function diagram programming method
CN105045602B (en) * 2015-08-24 2019-07-23 北京金山安全软件有限公司 Method and device for constructing Hadoop application development framework and electronic device

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090125877A1 (en) * 2007-10-22 2009-05-14 Oracle International Corporation Extensible code visualization
CN101464799A (en) * 2009-01-16 2009-06-24 天津大学 MPI parallel programming system based on visual modeling and automatic skeleton code generation method
CN102360296A (en) * 2011-10-20 2012-02-22 北京金和软件股份有限公司 WEB-based online form development tool
CN102646035A (en) * 2012-02-17 2012-08-22 南京南瑞继保电气有限公司 Visualized code generation method based on combination of API (application programming interface) and script definition
CN103197929A (en) * 2013-03-25 2013-07-10 中国科学院软件研究所 System and method for graphical programming facing children
CN103488477A (en) * 2013-09-02 2014-01-01 用友软件股份有限公司 Visual editing system and visual editing method of JAVA interface

Also Published As

Publication number Publication date
CN106569785A (en) 2017-04-19

Similar Documents

Publication Publication Date Title
US10528589B2 (en) Cross visualization interaction between data visualizations
CN111095215B (en) Inter-application delivery format specific data objects
CN102870106B (en) The interim of selected data formats and draws
US20070279417A1 (en) Modifying a chart
US10002035B2 (en) Visual selection and rendering of multiple clip board formats
CN109739855B (en) Method and system for realizing data sheet splicing and automatically training machine learning model
CN104360990A (en) Content editing method
US20140380178A1 (en) Displaying interactive charts on devices with limited resources
CN113011400A (en) Automatic identification and insight of data
US20140331179A1 (en) Automated Presentation of Visualized Data
WO2019047508A1 (en) Method for processing e-book comment information, electronic device and storage medium
CN114648615B (en) Method, device and equipment for controlling interactive reproduction of target object and storage medium
KR101798149B1 (en) Chart visualization method by selecting some areas of the data table
US8332750B2 (en) Resolving inter-page nodes and connectors in process diagrams
CN113535165A (en) Interface generation method and device, electronic equipment and computer readable storage medium
CN104375814A (en) Generation method and device of an interface document
CN106569785B (en) Method and device for generating job form
JP6668868B2 (en) Information processing apparatus and information processing program
US20230196004A1 (en) Systems and methods for conversion of documents to reusable content types
US8015485B2 (en) Multidimensional web page ruler
US20140365955A1 (en) Window reshaping by selective edge revisions
US9934200B1 (en) Method and system for implementing dynamic note formatting and display
CN113656041A (en) Data processing method, device, equipment and storage medium
US8775936B2 (en) Displaying dynamic and shareable help data for images a distance from a pointed-to location
US9575633B2 (en) User interface utility across service providers

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant