Skip to end of metadata
Go to start of metadata

 

  ← Return to the list of available actions

If you have a problem understanding how the action works, check the descriptions: Action, Conditional execution, Component parameters
General information

Category: General

Action location: Table, Variable, Button

Previous names: Returning a servlet to a variable (up to 1.0.43)

Available from version: 1.0.3

Description

The action returns the response from the webservice and writes it to the variable after the occurrence of the event: change of the variable, change in the table or pressing the button (depending on the place where the action is assigned).

Executing action

Leaving an empty conditional field is the same to setting it to "the truth".

Action locationThe "Conditional execution" parameterAction call condition
Table

Activates the action

Table update, i.e. adding, deleting or editing a row.

VariableActivates the action

Change the value of the variable on which the action is located

ButtonActivates the action

Pressing the button on which the action is located

Configuration parameters
Parameter nameFrom versionDescriptionParameter typeDefault valueField typeComments and restrictions
Servlet path*1.0.3Servlet path, whose returned value will be saved to the variable.Text Editable fieldServlet must be placed in the project. The path should contain the prefix "api/"
Servlet parameter's name*1.0.3List of servlet parameter namesTable of text values Editable field 
Servlet parameter's value*1.0.3List of servlet parameter valuesTable of text values Editable fieldParameter values are passed as text, so webservice should accept text values

Result variable*

1.0.3Variable to which the servlet result will be savedVariable Editable field

 

Parameter*- required field

Sample configuration


The servlet in the client project should be in a package starting with com.suncode

Example

 The following servlet accepts a parameter named userName of the text type. Its result should be written to a logical variable.

Sample servlet
@Controller
@RequestMapping( "/user" )
public class UsersController
{
    @Autowired
    private UserExistenceChecker checker;

    @RequestMapping( value = "user-exists", method = RequestMethod.GET )
    public @ResponseBody Boolean getUser( @RequestParam String userName )
        throws Exception
    {
        return checker.userExists( userName );
    }
}
Change log

1.0.3

  • Adding a component

1.0.43

  • Blocking the possibility of adding shares to the acceptance button
  • Renaming from "Returning servlet to variable" to "Returning webservice result to variable"

1.0.57

  • Update of the dynamic form

  • No labels

0 Comments

You are not logged in. Any changes you make will be marked as anonymous. You may want to Log In if you already have an account.