Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 23 Next »

  ← 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
Podstawowe informacje

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

Opis

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).

Wywołanie akcji

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

Parametry konfiguracyjne
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 );
    }
}

The license could not be verified: License Certificate has expired!

A map with an example configuration

 


  • No labels