class ProcessPropertyWriter extends BasePropertyWriter implements ElementContainer {

    public void setCaseFileVariables(CaseFileVariables caseFileVariables) {
        String value = caseFileVariables.getValue();
        DeclarationList declarationList = DeclarationList.fromString(value);

        List<Property> properties = process.getProperties();
        declarationList.getDeclarations().forEach(decl -> {
            VariableScope.Variable variable =
                    variableScope.declare(this.process.getId(),
                                          CaseFileVariables.CASE_FILE_PREFIX + decl.getIdentifier(),
                                          decl.getType());
            properties.add(variable.getTypedIdentifier());
            this.itemDefinitions.add(variable.getTypeDeclaration());
        });
    }

    public  ProcessPropertyWriter(Process process, VariableScope variableScope);

}